public static ModelBuilder.OeEdmModelMetadataProvider CreateMetadataProvider() { using (var dbContext = new OrderContext(OrderContextOptions.Create <OrderContext>(true))) { var model = (IMutableModel)dbContext.Model; model.Relational().DefaultSchema = "dbo"; return(new OeEfCoreEdmModelMetadataProvider(model)); } }
public static ModelBuilder.OeEdmModelMetadataProvider CreateMetadataProvider(bool useRelationalNulls, String databaseName) { using (var dbContext = new OrderContext(OrderContextOptions.Create(useRelationalNulls, databaseName))) { var model = (IMutableModel)dbContext.Model; model.Relational().DefaultSchema = "dbo"; return(new OeEfCoreEdmModelMetadataProvider(model)); } }
public override Object CreateDataContext() { return(new Order2Context(OrderContextOptions.Create <Order2Context>(_useRelationalNulls, null))); }
public Order2DataAdapter(bool allowCache, bool useRelationalNulls) : base(OrderContextOptions.Create <Order2Context>(useRelationalNulls), new Cache.OeQueryCache(allowCache)) { }
public static ModelBuilder.OeEdmModelMetadataProvider CreateMetadataProvider() { using (var dbContext = new OrderContext(OrderContextOptions.Create(true))) return(new OeEfCoreEdmModelMetadataProvider(dbContext.Model)); }
public OrderDataAdapter() : base(OrderContextOptions.Create(OrderContext.GenerateDatabaseName()), new Cache.OeQueryCache(false)) { }
public OrderDataAdapter(bool allowCache, bool useRelationalNulls, String databaseName) : base(OrderContextOptions.Create(useRelationalNulls, databaseName), new Cache.OeQueryCache(allowCache)) { }
public static ModelBuilder.OeEdmModelMetadataProvider CreateMetadataProvider(bool useRelationalNulls, String databaseName) { using (var dbContext = new OrderContext(OrderContextOptions.Create(useRelationalNulls, databaseName))) return(new OeEfCoreEdmModelMetadataProvider(dbContext.Model)); }