Show / Hide Table of Contents

Class AzureTableRepositoryContext

Inheritance
System.Object
AzureTableRepositoryContext
Implements
IAzureTableRepositoryContext
IRegisterEntities
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()
Namespace: Ease.Repository.AzureTable
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
Type Name Description
IAzureTableRepositoryConfig config
IBestEffortUnitOfWork unitOfWork
IAzureTableStoreFactory storeFactory

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
Type Description
IAzureTableRepositoryConfig

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 Description
TEntity
Type Parameters
Name Description
TEntity
| 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
Name Description
TEntity
| 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
Name Description
TEntity
| 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
Name Description
TEntity

Implements

IAzureTableRepositoryContext
IRegisterEntities

Extension Methods

ChangeTrackingExtensions.CurrentState<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX