コード例 #1
0
 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));
     }
 }
コード例 #2
0
 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));
     }
 }
コード例 #3
0
 public override Object CreateDataContext()
 {
     return(new Order2Context(OrderContextOptions.Create <Order2Context>(_useRelationalNulls, null)));
 }
コード例 #4
0
 public Order2DataAdapter(bool allowCache, bool useRelationalNulls) :
     base(OrderContextOptions.Create <Order2Context>(useRelationalNulls), new Cache.OeQueryCache(allowCache))
 {
 }
コード例 #5
0
 public static ModelBuilder.OeEdmModelMetadataProvider CreateMetadataProvider()
 {
     using (var dbContext = new OrderContext(OrderContextOptions.Create(true)))
         return(new OeEfCoreEdmModelMetadataProvider(dbContext.Model));
 }
コード例 #6
0
 public OrderDataAdapter() :
     base(OrderContextOptions.Create(OrderContext.GenerateDatabaseName()), new Cache.OeQueryCache(false))
 {
 }
コード例 #7
0
 public OrderDataAdapter(bool allowCache, bool useRelationalNulls, String databaseName) :
     base(OrderContextOptions.Create(useRelationalNulls, databaseName), new Cache.OeQueryCache(allowCache))
 {
 }
コード例 #8
0
 public static ModelBuilder.OeEdmModelMetadataProvider CreateMetadataProvider(bool useRelationalNulls, String databaseName)
 {
     using (var dbContext = new OrderContext(OrderContextOptions.Create(useRelationalNulls, databaseName)))
         return(new OeEfCoreEdmModelMetadataProvider(dbContext.Model));
 }