Show / Hide Table of Contents

Class DocumentStorageExtensions

Inheritance
System.Object
DocumentStorageExtensions
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public static class DocumentStorageExtensions : object

Fields

| Improve this Doc View Source

DefaultTextScoreProperty

Свойство, в которое помещается значение релевантности документа при полнотекстовом поиске.

Declaration
public const string DefaultTextScoreProperty = null
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

And<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)

Объединяет два выражения фильтрации с использованием логического оператора И.

Declaration
public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> first
Expression<Func<T, System.Boolean>> second
Returns
Type Description
Expression<Func<T, System.Boolean>>
Type Parameters
Name Description
T
| Improve this Doc View Source

Compose<T>(Expression<T>, Expression<T>, Func<Expression, Expression, Expression>)

Объединяет два выражения с использованием указанной функции.

Declaration
public static Expression<T> Compose<T>(this Expression<T> first, Expression<T> second, Func<Expression, Expression, Expression> composeFunc)
Parameters
Type Name Description
Expression<T> first
Expression<T> second
Func<Expression, Expression, Expression> composeFunc
Returns
Type Description
Expression<T>
Type Parameters
Name Description
T
| Improve this Doc View Source

GetDefaultDocumentTypeName<TDocument>()

Возвращает имя типа документа по умолчанию.

Declaration
public static string GetDefaultDocumentTypeName<TDocument>()
Returns
Type Description
System.String

Имя типа документа.

Type Parameters
Name Description
TDocument

Тип документа.

| Improve this Doc View Source

Not<T>(Expression<Func<T, Boolean>>)

Инвертирует выражение фильтрации с использованием логического оператора НЕ.

Declaration
public static Expression<Func<T, bool>> Not<T>(this Expression<Func<T, bool>> value)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> value
Returns
Type Description
Expression<Func<T, System.Boolean>>
Type Parameters
Name Description
T
| Improve this Doc View Source

Or<T>(Expression<Func<T, Boolean>>, Expression<Func<T, Boolean>>)

Объединяет два выражения фильтрации с использованием логического оператора ИЛИ.

Declaration
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
Parameters
Type Name Description
Expression<Func<T, System.Boolean>> first
Expression<Func<T, System.Boolean>> second
Returns
Type Description
Expression<Func<T, System.Boolean>>
Type Parameters
Name Description
T
| Improve this Doc View Source

SaveMany(IDocumentBulkBuilder, IEnumerable<DynamicDocument>)

Вставляет набор документов в хранилище или заменяет их, если они уже существуют.

Declaration
public static IDocumentBulkBuilder SaveMany(this IDocumentBulkBuilder target, IEnumerable<DynamicDocument> documents)
Parameters
Type Name Description
IDocumentBulkBuilder target
IEnumerable<DynamicDocument> documents

Документы для сохранения.

Returns
Type Description
IDocumentBulkBuilder
| Improve this Doc View Source

SaveMany(IDocumentStorage, IEnumerable<DynamicDocument>)

Вставляет набор документов в хранилище или заменяет их, если они уже существуют.

Declaration
public static DocumentBulkResult SaveMany(this IDocumentStorage target, IEnumerable<DynamicDocument> documents)
Parameters
Type Name Description
IDocumentStorage target
IEnumerable<DynamicDocument> documents

Документы для сохранения.

Returns
Type Description
DocumentBulkResult
| Improve this Doc View Source

SaveMany(IUnitOfWork, String, IEnumerable<DynamicDocument>)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static void SaveMany(this IUnitOfWork target, string documentType, IEnumerable<DynamicDocument> documents)
Parameters
Type Name Description
IUnitOfWork target
System.String documentType

Имя типа документа.

IEnumerable<DynamicDocument> documents

Документы для сохранения.

| Improve this Doc View Source

SaveMany<TDocument>(IDocumentBulkBuilder<TDocument>, IEnumerable<TDocument>)

Вставляет набор документов в хранилище или заменяет их, если они уже существуют.

Declaration
public static IDocumentBulkBuilder<TDocument> SaveMany<TDocument>(this IDocumentBulkBuilder<TDocument> target, IEnumerable<TDocument> documents)where TDocument : Document
Parameters
Type Name Description
IDocumentBulkBuilder<TDocument> target
IEnumerable<TDocument> documents

Документы для сохранения.

Returns
Type Description
IDocumentBulkBuilder<TDocument>
Type Parameters
Name Description
TDocument
| Improve this Doc View Source

SaveMany<TDocument>(IDocumentStorage<TDocument>, IEnumerable<TDocument>)

Вставляет набор документов в хранилище или заменяет их, если они уже существуют.

Declaration
public static DocumentBulkResult SaveMany<TDocument>(this IDocumentStorage<TDocument> target, IEnumerable<TDocument> documents)where TDocument : Document
Parameters
Type Name Description
IDocumentStorage<TDocument> target
IEnumerable<TDocument> documents

Документы для сохранения.

Returns
Type Description
DocumentBulkResult
Type Parameters
Name Description
TDocument
| Improve this Doc View Source

SaveMany<TDocument>(IUnitOfWork, IEnumerable<TDocument>)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static void SaveMany<TDocument>(this IUnitOfWork target, IEnumerable<TDocument> documents)where TDocument : Document
Parameters
Type Name Description
IUnitOfWork target
IEnumerable<TDocument> documents

Документы для сохранения.

Type Parameters
Name Description
TDocument

Тип документа.

| Improve this Doc View Source

SaveMany<TDocument>(IUnitOfWork, String, IEnumerable<TDocument>)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static void SaveMany<TDocument>(this IUnitOfWork target, string documentType, IEnumerable<TDocument> documents)where TDocument : Document
Parameters
Type Name Description
IUnitOfWork target
System.String documentType

Имя типа документа.

IEnumerable<TDocument> documents

Документы для сохранения.

Type Parameters
Name Description
TDocument

Тип документа.

| Improve this Doc View Source

SaveManyAsync(IDocumentStorage, IEnumerable<DynamicDocument>)

Вставляет набор документов в хранилище или заменяет их, если они уже существуют.

Declaration
public static Task<DocumentBulkResult> SaveManyAsync(this IDocumentStorage target, IEnumerable<DynamicDocument> documents)
Parameters
Type Name Description
IDocumentStorage target
IEnumerable<DynamicDocument> documents

Документы для сохранения.

Returns
Type Description
Task<DocumentBulkResult>
| Improve this Doc View Source

SaveManyAsync<TDocument>(IDocumentStorage<TDocument>, IEnumerable<TDocument>)

Вставляет набор документов в хранилище или заменяет их, если они уже существуют.

Declaration
public static Task<DocumentBulkResult> SaveManyAsync<TDocument>(this IDocumentStorage<TDocument> target, IEnumerable<TDocument> documents)where TDocument : Document
Parameters
Type Name Description
IDocumentStorage<TDocument> target
IEnumerable<TDocument> documents

Документы для сохранения.

Returns
Type Description
Task<DocumentBulkResult>
Type Parameters
Name Description
TDocument
| Improve this Doc View Source

SaveOne(IDocumentBulkBuilder, DynamicDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static IDocumentBulkBuilder SaveOne(this IDocumentBulkBuilder target, DynamicDocument document)
Parameters
Type Name Description
IDocumentBulkBuilder target
DynamicDocument document

Документ для сохранения.

Returns
Type Description
IDocumentBulkBuilder
| Improve this Doc View Source

SaveOne(IDocumentStorage, DynamicDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static DocumentUpdateResult SaveOne(this IDocumentStorage target, DynamicDocument document)
Parameters
Type Name Description
IDocumentStorage target
DynamicDocument document

Документ для сохранения.

Returns
Type Description
DocumentUpdateResult
| Improve this Doc View Source

SaveOne(IUnitOfWork, String, DynamicDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static void SaveOne(this IUnitOfWork target, string documentType, DynamicDocument document)
Parameters
Type Name Description
IUnitOfWork target
System.String documentType

Имя типа документа.

DynamicDocument document

Документ для сохранения.

| Improve this Doc View Source

SaveOne<TDocument>(IDocumentBulkBuilder<TDocument>, TDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static IDocumentBulkBuilder<TDocument> SaveOne<TDocument>(this IDocumentBulkBuilder<TDocument> target, TDocument document)where TDocument : Document
Parameters
Type Name Description
IDocumentBulkBuilder<TDocument> target
TDocument document

Документ для сохранения.

Returns
Type Description
IDocumentBulkBuilder<TDocument>
Type Parameters
Name Description
TDocument
| Improve this Doc View Source

SaveOne<TDocument>(IDocumentStorage<TDocument>, TDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static DocumentUpdateResult SaveOne<TDocument>(this IDocumentStorage<TDocument> target, TDocument document)where TDocument : Document
Parameters
Type Name Description
IDocumentStorage<TDocument> target
TDocument document

Документ для сохранения.

Returns
Type Description
DocumentUpdateResult
Type Parameters
Name Description
TDocument
| Improve this Doc View Source

SaveOne<TDocument>(IUnitOfWork, TDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static void SaveOne<TDocument>(this IUnitOfWork target, TDocument document)where TDocument : Document
Parameters
Type Name Description
IUnitOfWork target
TDocument document

Документ для сохранения.

Type Parameters
Name Description
TDocument

Тип документа.

| Improve this Doc View Source

SaveOne<TDocument>(IUnitOfWork, String, TDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static void SaveOne<TDocument>(this IUnitOfWork target, string documentType, TDocument document)where TDocument : Document
Parameters
Type Name Description
IUnitOfWork target
System.String documentType

Имя типа документа.

TDocument document

Документ для сохранения.

Type Parameters
Name Description
TDocument

Тип документа.

| Improve this Doc View Source

SaveOneAsync(IDocumentStorage, DynamicDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static Task<DocumentUpdateResult> SaveOneAsync(this IDocumentStorage target, DynamicDocument document)
Parameters
Type Name Description
IDocumentStorage target
DynamicDocument document

Документ для сохранения.

Returns
Type Description
Task<DocumentUpdateResult>
| Improve this Doc View Source

SaveOneAsync<TDocument>(IDocumentStorage<TDocument>, TDocument)

Вставляет один документ в хранилище или заменяет его, если он уже существует.

Declaration
public static Task<DocumentUpdateResult> SaveOneAsync<TDocument>(this IDocumentStorage<TDocument> target, TDocument document)where TDocument : Document
Parameters
Type Name Description
IDocumentStorage<TDocument> target
TDocument document

Документ для сохранения.

Returns
Type Description
Task<DocumentUpdateResult>
Type Parameters
Name Description
TDocument
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.