Inheritance
System.Object
DocumentStorageExtensions
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
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
Объединяет два выражения фильтрации с использованием логического оператора И.
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
|
Improve this Doc
View Source
Объединяет два выражения с использованием указанной функции.
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
|
Improve this Doc
View Source
Возвращает имя типа документа по умолчанию.
Declaration
public static string GetDefaultDocumentTypeName<TDocument>()
Returns
Type |
Description |
System.String |
Имя типа документа.
|
Type Parameters
Name |
Description |
TDocument |
Тип документа.
|
|
Improve this Doc
View Source
Инвертирует выражение фильтрации с использованием логического оператора НЕ.
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
|
Improve this Doc
View Source
Объединяет два выражения фильтрации с использованием логического оператора ИЛИ.
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
|
Improve this Doc
View Source
Вставляет набор документов в хранилище или заменяет их, если они уже существуют.
Declaration
public static IDocumentBulkBuilder SaveMany(this IDocumentBulkBuilder target, IEnumerable<DynamicDocument> documents)
Parameters
Returns
|
Improve this Doc
View Source
Вставляет набор документов в хранилище или заменяет их, если они уже существуют.
Declaration
public static DocumentBulkResult SaveMany(this IDocumentStorage target, IEnumerable<DynamicDocument> documents)
Parameters
Returns
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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
Вставляет набор документов в хранилище или заменяет их, если они уже существуют.
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 Parameters
Name |
Description |
TDocument |
|
|
Improve this Doc
View Source
Вставляет набор документов в хранилище или заменяет их, если они уже существуют.
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 Parameters
Name |
Description |
TDocument |
|
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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
Вставляет набор документов в хранилище или заменяет их, если они уже существуют.
Declaration
public static Task<DocumentBulkResult> SaveManyAsync(this IDocumentStorage target, IEnumerable<DynamicDocument> documents)
Parameters
Returns
|
Improve this Doc
View Source
Вставляет набор документов в хранилище или заменяет их, если они уже существуют.
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 Parameters
Name |
Description |
TDocument |
|
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
Declaration
public static IDocumentBulkBuilder SaveOne(this IDocumentBulkBuilder target, DynamicDocument document)
Parameters
Returns
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
Declaration
public static DocumentUpdateResult SaveOne(this IDocumentStorage target, DynamicDocument document)
Parameters
Returns
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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 Parameters
Name |
Description |
TDocument |
|
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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 Parameters
Name |
Description |
TDocument |
|
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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
Вставляет один документ в хранилище или заменяет его, если он уже существует.
Declaration
public static Task<DocumentUpdateResult> SaveOneAsync(this IDocumentStorage target, DynamicDocument document)
Parameters
Returns
|
Improve this Doc
View Source
Вставляет один документ в хранилище или заменяет его, если он уже существует.
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 Parameters
Name |
Description |
TDocument |
|