it:ad:ef:queries

IT:AD:EF:Queries


## Loading of Graphs (Lazy v. Explicit Loading of related tables) ##

Related entities can be loaded implicitly (lazy loading) or explicitly.

See Queries

## Returning Anonymous / 'mini-Entities' ##

As expressed here: LINQ one can return smaller objects:

//using anonymous objects:
data.Where(x=>x.Last =="Smith").Select(x=>new F=x.First, L=x.Last).Dump();
//using specific objects:
data.Where(x=>x.Last =="Smith").Select(x=>new Y F=x.First, L=x.Last).Dump();

Building up Query filters progressively, using AND/OR, is actually a lot trickier than it looks due to the expression being evaluated in Code rather than EF.

See: statements

Due to in memory caching within the identity map, data can become state (saves on one machine are not reflected on another.

  • /home/skysigal/public_html/data/pages/it/ad/ef/queries.txt
  • Last modified: 2023/11/04 03:23
  • by 127.0.0.1