In EF code first, one specifies field properties and relationships using the fluent interface. This builds up a model. Is it possible to get a reference to this model, and reflect on it?
I want to be able to retrieve for a given field, if it is required, what its datatype is, what length, etc…
In EF code first, one specifies field properties and relationships using the fluent interface.
Share
You need to access the MetadataWorkspace. The API is pretty cryptic. You may want to replace
DataSpace.CSpacewithDataSpace.SSpaceto get the database metadata.