c# - Retrieve metadata from a database with EntityFramework -
i'd retrieve metadata given database entityframework. i've tried use code :
var objectcontext = ((iobjectcontextadapter)context).objectcontext; var meta = objectcontext.getmetadataworkspace().getentitycontainer(objectcontext.defaultcontainername, dataspace.cspace); var sets = meta.baseentitysets;
but sets
empty because pocos have created first.
i'd retrieve metadata in order create pocos without using designer tool.
Comments
Post a Comment