All lingering references say that this is possible, but they all mention POCO and that's it. I am using EF4 with model-first functionality, in my model diagram, I have a project table and a user object table, among them between 1 to many relationships. However, in the code, when I have a valid UserObject and I try to execute this project: project prj = userobj.Project
. Unfortunately, this does not work because it claims that UserObject.Project is zero.
It seems that I have to explicitly load the project object by calling UserObject.ProjectReference.Load () before calling it. Project Do I make a way to reach myself when I enter. Project property?
This should work just fine. Right click ADMX, click Properties, check that Dull loading enabled
is set to EDMX.
Comments
Post a Comment