Exemple #1
0
 public static ITable Create(ILazyProvider <IAmazonDynamoDB> client, string tableName)
 {
     return(new TableProxy(client, tableName));
 }
Exemple #2
0
 private TableProxy(ILazyProvider <IAmazonDynamoDB> client, string tableName)
 {
     this.client = client;
     TableName   = tableName;
 }
 protected BaseRepository(IAmazonDynamoDB client, ITable table)
 {
     clientProvider = new LazyProvider <IAmazonDynamoDB>(() => client);
     Table          = table;
 }
Exemple #4
0
 public BlogRepository(IApplicationConfig config, ILazyProvider <IAmazonDynamoDB> clientProvider)
     : base(clientProvider, config.BlogPostTableName)
 {
 }
 protected BaseRepository(ILazyProvider <IAmazonDynamoDB> clientProvider, string tableName)
 {
     this.clientProvider = clientProvider;
     Table = TableProxy.Create(clientProvider, tableName);
 }