I am going crazy trying to get a handle on Linq include.
My main file is "Application" that has a GUID key of "Id" but I can't figure out the syntax to get it back without error.
public static Guid? ApplicationIdGet(string pApplicationName)
{
return 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;
}