[Solved] Get/Count Number of Entities? [closed]
Found it out. I have to use the contextobject: ERP_EMIModelContainer context = new ERP_EMIModelContainer(); and now I do this: int numberOfEntities = context.MetadataWorkspace.GetEntityContainer(context.DefaultContainerName, DataSpace.CSpace).BaseEntitySets.Count; btw Thanks for downvoting the question … 2 solved Get/Count Number of Entities? [closed]