public DbFixture() { _databaseName = OrderContext.GenerateDatabaseName(); _dbDataAdapter = new OrderDbDataAdapter(_databaseName); _oeDataAdapter = new OrderOeDataAdapter(_databaseName); _edmModel = OeDataAdapter.BuildEdmModel(); }
public DbFixture(bool allowCache, bool useRelationalNulls) { _useRelationalNulls = useRelationalNulls; _databaseName = Model.OrderContext.GenerateDatabaseName(); DbDataAdapter = new OrderDbDataAdapter(allowCache, useRelationalNulls, _databaseName); OeDataAdapter = new OrderOeDataAdapter(allowCache, useRelationalNulls, _databaseName); EdmModel = OeDataAdapter.BuildEdmModel(); }
public void FluentApi() { var ethalonDataAdapter = new OeEfCoreDataAdapter <OrderContext>(); EdmModel ethalonEdmModel = ethalonDataAdapter.BuildEdmModel(); String ethalonSchema = TestHelper.GetCsdlSchema(ethalonEdmModel); var testDataAdapter = new OrderOeDataAdapter(false, false, null); EdmModel testEdmModel = BuildEdmModelFromEf6Model(testDataAdapter); String testSchema = TestHelper.GetCsdlSchema(testEdmModel); Assert.Equal(ethalonSchema, testSchema); }
public static EdmModel BuildEdmModel(this OrderOeDataAdapter dataAdapter) { return(dataAdapter.BuildEdmModelFromEfCorePgSqlModel("dbo")); }