I have the following code
using (WdmEntities context = new WdmEntities()) { //get object models from context ObjectContext objContext = ((IObjectContextAdapter)context).ObjectContext; var container = objContext.MetadataWorkspace.GetEntityContainer(objContext.DefaultContainerName, DataSpace.CSpace); List<string> schemas = new List<string>(); foreach (var set in container.BaseEntitySets) { foreach (var metaproperty in set.MetadataProperties) { //here if(metaproperty.Name == "Schema") { //but metaproperty.Value == NULL schemas.Add(metaproperty.Value); } } } }
I get null values ββinstead of schema names. How can I get the shemas names from an entity frame. (In my db, I have two different masks). Maybe someone knows a different way?
source share