private void InitStore() { if (store != null) { return; } if (autoMigrations) { new Migrator(connectionString).Upgrade(); } var jsonSettings = new JsonSerializerSettings { DateFormatHandling = DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind, TypeNameHandling = TypeNameHandling.Auto, TypeNameAssemblyFormat = FormatterAssemblyStyle.Simple, }; var mappings = new RelationalMappings(); mappings.Install(new[] { new StoredWorkFlowStateMap() }); store = new RelationalStore( connectionString, appName, new SqlCommandFactory(), mappings, jsonSettings, new EmptyRelatedDocumentStore() ); }
void InitializeStore() { Mappings = new RelationalMappings(); Mappings.Install(new List <DocumentMap>() { new CustomerMap(), new ProductMap(), new LineItemMap() }); Store = BuildRelationalStore(TestDatabaseConnectionString, 0.01); }
public OrderRepository(string connectionString) { Mappings = new RelationalMappings(); Mappings.Install(new[] { new OrderMap() }); Store = new RelationalStore(connectionString, "OrderService", new SqlCommandFactory(), Mappings, Settings, new EmptyRelatedDocumentStore()); }
public DataModificationQueryBuilderFixture() { var mappings = new RelationalMappings(); mappings.Install(new DocumentMap[] { new TestDocumentMap(), new TestDocumentWithRelatedDocumentsMap(), new TestDocumentWithMultipleRelatedDocumentsMap(), new OtherMap() }); builder = new DataModificationQueryBuilder( mappings, new JsonSerializerSettings() ); }
void InitializeStore() { Mappings = new RelationalMappings(); Mappings.Install(new List <DocumentMap>() { new CustomerMap(), new CustomerToTestSerializationMap(), new BrandMap(), new BrandToTestSerializationMap(), new ProductMap <Product>(), new SpecialProductMap(), new ProductToTestSerializationMap(), new LineItemMap(), new MachineMap(), new MachineToTestSerializationMap() }); Store = BuildRelationalStore(TestDatabaseConnectionString, 0.01); }