Skip to end of metadata
Go to start of metadata

Defines data members for local data repository.

Definition

public interface ILocalDataRepository

Summary

The following table summarizes the members exposed in this interface.

Methods

CreateTablesAsync(Type[]) Creates table for the specified types.
DeleteAsync(object) Deletes the specified item asynchronously.
FinalizeSynchronizationAsync(IEnumerable, IEnumerable) Finalizes synchronization item asynchronously.
GetAllAsync(Type[]) Gets all entities from local data repository asynchronously.
GetAllAsync<TEntity>() Gets all items asynchronously using the default select parameter.
GetAllAsync<TEntity>(ISelectParameter) Gets all items asynchronously using the specified select parameter.
GetAllAsync(Type, ISelectParameter) Gets all items asynchronously using the specified select parameter.
GetPendingChangesAsync(Type[]) Gets pending changes stored in local data repository asynchronously.
GetPendingChangesAsync(bool, Type[]) Gets pending changes stored in local data repository asynchronously.
GetPendingChangesAsync(Dictionary<Type, QueryDescriptor>) Gets pending changes stored in local data repository asynchronously.
GetPendingChangesAsync(bool, Dictionary<Type, QueryDescriptor>) Gets pending changes stored in local data repository asynchronously.
GetSingleAsync<TEntity>(Dictionary<string, object>) Gets a single item asynchronously using the specified entity keys.
GetSingleAsync<TEntity>(Dictionary<string, object>, String[]) Gets the single item asynchronously using the specified entity keys.
GetSingleAsync<TEntity>(object) Gets a single item asynchronously using the specified entity key.
GetSingleAsync<TEntity>(object, String[]) Gets a single item asynchronously using the specified entity key.
GetSingleAsync<TEntity, TKey>(TKey) Gets a single item asynchronously using the specified entity key.
GetSingleAsync<TEntity, TKey>(TKey, String[]) Gets a single item asynchronously using the specified entity key.
InsertAllAsync(IEnumerable) Inserts the items asynchronously.
InsertAsync(object) Inserts the specified item asynchronously.
InsertAsync(object, bool) Inserts the specified item asynchronously.
UpdateAsync(object) Updates the specified item asynchronously.

Methods

Task CreateTablesAsync(Type[] types)

Creates table for the specified types.

Parameters

types The entity types.

Task<int> DeleteAsync(object item)

Deletes the specified item asynchronously.

Parameters

item The item.

Task<int> FinalizeSynchronizationAsync(IEnumerable pendingChanges, IEnumerable finalItems)

Finalizes synchronization item asynchronously.

Parameters

pendingChanges The pending items to be updated.
finalItems The final items to be inserted.

Task<ISelectResult> GetAllAsync(Type[] types)

Gets all entities from local data repository asynchronously.

Parameters

types The entity types.

Task<ISelectResult<TEntity>> GetAllAsync<TEntity>()

Gets all items asynchronously using the default select parameter.

Type Parameters

TEntity The entity type

Task<ISelectResult<TEntity>> GetAllAsync<TEntity>(ISelectParameter selectParameter)

Gets all items asynchronously using the specified select parameter.

Type Parameters

TEntity The entity type.

Parameters

selectParameter The select parameter.

Task<ISelectResult> GetAllAsync(Type entityType, ISelectParameter selectParameter)

Gets all items asynchronously using the specified select parameter.

Parameters

entityType The entity type.
selectParameter The select parameter.

Task<IEnumerable> GetPendingChangesAsync(Type[] types)

Gets pending changes stored in local data repository asynchronously.

Parameters

types The entity types.

Task<IEnumerable> GetPendingChangesAsync(bool restoreEntityState, Type[] types)

Gets pending changes stored in local data repository asynchronously.

Parameters

restoreEntityState Restore entity state when retrieving pending changes.
types The entity types.

Task<IEnumerable> GetPendingChangesAsync(Dictionary<Type, QueryDescriptor> queries)

Gets pending changes stored in local data repository asynchronously.

Parameters

queries A key pair value that represents table and its query descriptor.

Task<IEnumerable> GetPendingChangesAsync(bool restoreEntityState, Dictionary<Type, QueryDescriptor> queries)

Gets pending changes stored in local data repository asynchronously.

Parameters

restoreEntityState Restore entity state when retrieving pending changes.
queries A key pair value that represents table and its query descriptor.

Task<TEntity> GetSingleAsync<TEntity>(Dictionary<string, object> keys)

Gets a single item asynchronously using the specified entity keys.

Type Parameters

TEntity The entity type.

Parameters

keys The keys

Task<TEntity> GetSingleAsync<TEntity>(Dictionary<string, object> keys, String[] includes)

Gets the single item asynchronously using the specified entity keys.

Type Parameters

TEntity The entity type.

Parameters

keys The keys.
includes Includes.

Task<TEntity> GetSingleAsync<TEntity>(object key)

Gets a single item asynchronously using the specified entity key.

Type Parameters

TEntity The entity type.

Parameters

key The key.

Task<TEntity> GetSingleAsync<TEntity>(object key, String[] includes)

Gets a single item asynchronously using the specified entity key.

Type Parameters

TEntity The entity type.

Parameters

key The key.
includes Includes.

Task<TEntity> GetSingleAsync<TEntity, TKey>(TKey key)

Gets a single item asynchronously using the specified entity key.

Type Parameters

TEntity The entity type.
TKey The entity key type.

Parameters

key The key.

Task<TEntity> GetSingleAsync<TEntity, TKey>(TKey key, String[] includes)

Gets a single item asynchronously using the specified entity key.

Type Parameters

TEntity The entity type.
TKey The entity key type.

Parameters

key The key.
includes Includes.

Task<int> InsertAllAsync(IEnumerable items)

Inserts the items asynchronously.

Parameters

items The items to be inserted.

Task<int> InsertAsync(object item)

Inserts the specified item asynchronously.

Parameters

item The item to be inserted.

Task<int> InsertAsync(object item, bool recursive)

Inserts the specified item asynchronously.

Parameters

item The item to be inserted.
recursive if set to true insert the child table recursively.

Task<int> UpdateAsync(object item)

Updates the specified item asynchronously.

Parameters

item The item to be updated.
  • No labels