EntityFramework 4.3 - Creating DbContext from Database without ObjectContext?
-
11-11-2019 - |
문제
Following the tutorial on http://msdn.microsoft.com/en-us/data/gg715119 it describes adding an EDMX Entity Data Model to my solution (which generates cluttered models including ObjectContext
from my db) and after that the tutorial generates a DbContext
by clicking "Add item..." on the EDMX designer (because this is where the option Generate DbContext is available).
Is this the way to go if I want to work with EF 4.3 DbContext
? Isn't it possible somehow to create a model from my database while only using DbContext
?
I don't really want the ObjectContext
with EDMX file in my solution. Just the .tt
files. Is this possible?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow