/
aprogrammer
/
yessql
Обзор
Документация
Войти
/
aprogrammer
/
yessql
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/YesSql.Abstractions/IStore.cs
48 строк
2 KB
Mike Alhayek
Add a way to specify no-tracking to reduce caching on demand (#524)
27 янв 2024, 01:20
Не верифицирован
27 янв 2024, 01:20
11a51bf
Код
Авторство
О чём код?
using System; using System.Collections.Generic; using System.Threading.Tasks; using YesSql.Indexes; namespace YesSql { public interface IStore : IDisposable { /// <summary> /// Creates a new <see cref="ISession"/> to communicate with the <see cref="IStore"/>. /// </summary> ISession CreateSession(bool withTracking = true); /// <summary> /// Registers index providers. /// </summary> /// <param name="indexProviders">The index providers to register.</param> /// <param name="collection">The name of the collection.</param> /// <returns>The <see cref="IStore"/> instance.</returns> IStore RegisterIndexes(IEnumerable<IIndexProvider> indexProviders, string collection = null); /// <summary> /// Returns the <see cref="IConfiguration" /> instance used to create this store. /// </summary> IConfiguration Configuration { get; } /// <summary> /// Initializes the database by creating the required tables and the default collection if necessary. /// </summary> Task InitializeAsync(); /// <summary> /// Initializes a collection in the database by creating the required tables if necessary. /// </summary> Task InitializeCollectionAsync(string collection); /// <summary> /// Create an instance of <see cref="IEnumerable<IndexDescriptor>" /> containing descriptors for all indexes associated to a type and a collection. /// </summary> IEnumerable<IndexDescriptor> Describe(Type target, string collection = null); /// <summary> /// Returns the <see cref="ITypeService" /> instance used to create this store. /// </summary> ITypeService TypeNames { get; } } }