.net - Syntax for Entity Framework .Include() -
.net - Syntax for Entity Framework .Include() -
i going crazy trying handle on linq include.
my main file "application" has guid key of "id" can't figure out syntax without error.
public static guid? applicationidget(string papplicationname) { homecoming brunoentities.set<appapplication>().include("id").firstordefault(p => p.loweredname == papplicationname.tolower()).id; //return brunoentities.appapplications.include(a => a.id).firstordefault(p => p.loweredname == papplicationname.tolower()).id; //return brunoentities.appapplications.include("id").firstordefault(p => p.loweredname == papplicationname.tolower()).id; }
include want ef load in related entities. don't need normal properties of entity requesting. if want have ef fetch columns database, select function allow command that
.net linq entity-framework
Comments
Post a Comment