internal static EdmModel CreateOeEdmModel(bool useRelationalNulls)
        {
            var dataAdapter = new OrderDataAdapter(true, useRelationalNulls);
            OeEdmModelMetadataProvider metadataProvider = OrderDataAdapter.CreateMetadataProvider();
            bool allowCache        = TestHelper.GetQueryCache(dataAdapter).AllowCache;
            var  order2DataAdapter = new Order2DataAdapter(allowCache, useRelationalNulls);
            var  refModel          = new OeEdmModelBuilder(dataAdapter, metadataProvider).BuildEdmModel();

            return(order2DataAdapter.BuildEdmModel(refModel));
        }
Exemplo n.º 2
0
 private DbFixture(bool useRelationalNulls, String databaseName, Db.OeDataAdapter dataAdapter)
     : this(useRelationalNulls, databaseName, dataAdapter, OrderDataAdapter.CreateMetadataProvider(useRelationalNulls, databaseName))
 {
 }