//private static readonly LoggerFactory MyLoggerFactory = new LoggerFactory(new[] {new ConsoleLoggerProvider((category, level) // => true, true) }); public static EdmModel BuildEdmModel(Db.OeDataAdapter dataAdapter, ModelBuilder.OeEdmModelMetadataProvider metadataProvider) { var order2DataAdapter = new Order2DataAdapter(false, true, "test2"); var refModel = new ModelBuilder.OeEdmModelBuilder(dataAdapter, metadataProvider).BuildEdmModel(); return(order2DataAdapter.BuildEdmModel(refModel)); }
public static EdmModel BuildEdmModel(Db.OeDataAdapter dataAdapter, ModelBuilder.OeEdmModelMetadataProvider metadataProvider) { bool allowCache = TestHelper.GetQueryCache(dataAdapter).AllowCache; var order2DataAdapter = new Order2DataAdapter(allowCache, true, "test2"); var refModel = new ModelBuilder.OeEdmModelBuilder(dataAdapter, metadataProvider).BuildEdmModel(); return(order2DataAdapter.BuildEdmModel(refModel)); }
public static EdmModel BuildDbEdmModel(bool useRelationalNulls) { var orderDataAdapter = new OrderDataAdapter(false, useRelationalNulls); IEdmModel orderEdmModel = orderDataAdapter.BuildEdmModel(); var order2DataAdapter = new Order2DataAdapter(false, useRelationalNulls); return(order2DataAdapter.BuildEdmModel(orderEdmModel)); }