Is there any way to get POCO's types from specified DbContext instance?
相关问题
- Entity Framework Code First Migration
- Entity Framework throws exception - Network Relate
- How to Specify a Compound key in Entity Framework
- Slow loading first page - ASP.NET MVC
- query and create objects with a one to many relati
相关文章
-
EF6 DbSet
returns null in Moq - Entity Framework 4.3.1 failing to create (/open) a
- EF6 code first: How to load DbCompiledModel from E
- Why do I need a ToList() to avoid disposed context
- Code-First Add-Migration keeps adding the same col
- EF Codefirst validate unique property?
- EF Core 'another instance is already being tra
- Add XML documentation / comments to properties/fie
Unfortunately, I couldn't edit the accepted answers - you just need to change the dataspace used as follows
to get your POCO classes instead of the EF proxies.
You need to access the MetadataWorkspace
@Lei Yang: you can use this to get all types into a list.