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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -