Example #1
0
 public TableEntityAdapterFactoryTests()
 {
     _factory    = new TableEntityAdapterFactory();
     _entityType = new Model().AddEntityType(typeof(PocoTestType));
     _entityType.GetOrAddProperty("PartitionKey", typeof(string));
     _entityType.GetOrAddProperty("RowKey", typeof(string));
     _entityType.GetOrAddProperty("Timestamp", typeof(DateTimeOffset));
 }
Example #2
0
        public AtsDataStore([NotNull] DbContextConfiguration configuration,
                            [NotNull] AtsConnection connection,
                            [NotNull] AtsQueryFactory queryFactory,
                            [NotNull] TableEntityAdapterFactory tableEntityFactory)
            : base(configuration)
        {
            Check.NotNull(connection, "connection");
            Check.NotNull(queryFactory, "queryFactory");
            Check.NotNull(tableEntityFactory, "tableEntityFactory");

            _queryFactory = queryFactory;
            EntityFactory = tableEntityFactory;
            Connection    = connection;
        }
Example #3
0
 /// <summary>
 ///     Provided only for testing purposes. Do not use.
 /// </summary>
 protected AtsDataStore(AtsConnection connection, TableEntityAdapterFactory entityFactory)
 {
     Connection    = connection;
     EntityFactory = entityFactory;
 }
 /// <summary>
 ///     Provided only for testing purposes. Do not use.
 /// </summary>
 protected AtsDataStore(DbContextConfiguration configuration, AtsConnection connection, TableEntityAdapterFactory entityFactory)
 {
     _configuration = configuration;
     Connection     = connection;
     EntityFactory  = entityFactory;
 }