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)); }