// <summary> // checks if the schemaKey refers to the provider manifest schema key // and if true, loads the provider manifest // </summary> // <param name="storeManifest"> The store manifest </param> private void LoadProviderManifest(DbProviderManifest storeManifest) { foreach (var primitiveType in storeManifest.GetStoreTypes()) { //Add it to the collection and the primitive type maps AddInternal(primitiveType); _primitiveTypeMaps.Add(primitiveType); } foreach (var function in storeManifest.GetStoreFunctions()) { AddInternal(function); } }
private void LoadEdmPrimitiveTypesAndFunctions() { var providerManifest = EdmProviderManifest.Instance; var primitiveTypes = providerManifest.GetStoreTypes(); for (var i = 0; i < primitiveTypes.Count; i++) { AddInternal(primitiveTypes[i]); _primitiveTypeMaps.Add(primitiveTypes[i]); } var functions = providerManifest.GetStoreFunctions(); for (var i = 0; i < functions.Count; i++) { AddInternal(functions[i]); } }