I have following code
return (EseshEntities.Current.Users.Select(u => new { Comunity = u.Apartment.Building.District.City })).ToList();
if building is empty then we got excpetion cos can’t acces property of null right?
but is there any option in entity to instad of excpetion return just null, so if property
doesn’t exist then return null?
what about this?