Class AzureTableRepositoryContext
Inheritance
System.Object
AzureTableRepositoryContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Ease.Repository.AzureTable.dll
Syntax
public class AzureTableRepositoryContext : IAzureTableRepositoryContext, IRegisterEntities
Constructors
|
Improve this Doc
View Source
AzureTableRepositoryContext(IAzureTableRepositoryConfig, IBestEffortUnitOfWork, IAzureTableStoreFactory)
Declaration
public AzureTableRepositoryContext(IAzureTableRepositoryConfig config, IBestEffortUnitOfWork unitOfWork, IAzureTableStoreFactory storeFactory)
Parameters
Properties
|
Improve this Doc
View Source
Client
Declaration
public CloudTableClient Client { get; }
Property Value
| Type |
Description |
| Microsoft.Azure.Cosmos.Table.CloudTableClient |
|
|
Improve this Doc
View Source
Config
Declaration
public IAzureTableRepositoryConfig Config { get; }
Property Value
Methods
|
Improve this Doc
View Source
RegisterAdd<TEntity>(TEntity)
Declaration
public TEntity RegisterAdd<TEntity>(TEntity entity)
where TEntity : class, new()
Parameters
| Type |
Name |
Description |
| TEntity |
entity |
|
Returns
Type Parameters
|
Improve this Doc
View Source
RegisterDelete<TEntity>(TEntity)
Declaration
public void RegisterDelete<TEntity>(TEntity entity)
where TEntity : class, new()
Parameters
| Type |
Name |
Description |
| TEntity |
entity |
|
Type Parameters
|
Improve this Doc
View Source
RegisterForUpdates<TEntity>(IEnumerable<TEntity>)
Declaration
public IEnumerable<TEntity> RegisterForUpdates<TEntity>(IEnumerable<TEntity> entities)
where TEntity : class, new()
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<TEntity> |
|
Type Parameters
|
Improve this Doc
View Source
RegisterTableForEntityType<TEntity>(Func<String>)
Return a Lazy of CloudTable that will fetch the table reference, honoring any configured TableNamePrefix
and auto-create if not exist.
Declaration
public Lazy<CloudTable> RegisterTableForEntityType<TEntity>(Func<string> tableNameFunc)
Parameters
| Type |
Name |
Description |
| System.Func<System.String> |
tableNameFunc |
Needs to be a func instead of direct access to virtual because this is wired up (into Lazy objects)
in the constructor where virtual calls are troublesome.
|
Returns
| Type |
Description |
| System.Lazy<Microsoft.Azure.Cosmos.Table.CloudTable> |
|
Type Parameters
Implements
Extension Methods