Using IEdmModel to resolve EntitySet name into EntityName (Products -> Product)
问题 I am using a OData Service on top of Entity Framework var uri = new Uri("http://localhost:9876/Service.svc"); var context = new DataServiceContext(uri, , DataServiceProtocolVersion.V3); var model = EdmxReader.Parse( XmlReader.Create(context.GetMetadataUri().AbsoluteUri) ); context.Format.UseJson(model); Now I need to figure out the entity name name from an EntitySet name My entities are called Product or Customer but the Name of the EntitySet can be either Products or CustomerSet or something