private static StorageMappingItemCollection LoadMappingItemCollection( DbProviderManifest providerManifest, string mslName, EdmItemCollection edmItemCollection, StoreItemCollection storeItemCollection) { using (var mslReader = providerManifest.GetInformation(mslName)) { IList <EdmSchemaError> errors; var mappingItemCollection = StorageMappingItemCollection.Create( edmItemCollection, storeItemCollection, new[] { mslReader }, new ReadOnlyCollection <string>( new List <string> { GetProviderServicesInformationLocationPath( providerManifest.GetType().Assembly.FullName, mslName) }), out errors); ThrowOnError(errors); return(mappingItemCollection); } }
private static StoreItemCollection LoadStoreItemCollection(DbProviderManifest providerManifest, string ssdlName) { Debug.Assert(providerManifest != null, "providerManifest != null"); Debug.Assert(!string.IsNullOrWhiteSpace(ssdlName), "ssdlName cannot be null or empty"); using (var ssdlReader = providerManifest.GetInformation(ssdlName)) { IList <EdmSchemaError> errors; var storeItemCollection = StoreItemCollection.Create( new[] { ssdlReader }, new ReadOnlyCollection <string>( new List <string> { GetProviderServicesInformationLocationPath( providerManifest.GetType().Assembly.FullName, ssdlName) }), DependencyResolver.Instance, out errors); ThrowOnError(errors); return(storeItemCollection); } }
private static StorageMappingItemCollection LoadMappingItemCollection( DbProviderManifest providerManifest, string mslName, EdmItemCollection edmItemCollection, StoreItemCollection storeItemCollection) { using (var mslReader = providerManifest.GetInformation(mslName)) { IList<EdmSchemaError> errors; var mappingItemCollection = StorageMappingItemCollection.Create( edmItemCollection, storeItemCollection, new[] { mslReader }, new ReadOnlyCollection<string>( new List<string> { GetProviderServicesInformationLocationPath( providerManifest.GetType().Assembly.FullName, mslName) }), out errors); ThrowOnError(errors); return mappingItemCollection; } }
private static StoreItemCollection LoadStoreItemCollection(DbProviderManifest providerManifest, string ssdlName) { Debug.Assert(providerManifest != null, "providerManifest != null"); Debug.Assert(!string.IsNullOrWhiteSpace(ssdlName), "ssdlName cannot be null or empty"); using (var ssdlReader = providerManifest.GetInformation(ssdlName)) { IList<EdmSchemaError> errors; var storeItemCollection = StoreItemCollection.Create( new[] { ssdlReader }, new ReadOnlyCollection<string>( new List<string> { GetProviderServicesInformationLocationPath( providerManifest.GetType().Assembly.FullName, ssdlName) }), DependencyResolver.Instance, out errors); ThrowOnError(errors); return storeItemCollection; } }