c# - How do i filter the tables i do not need when I use "include"? -


My EF Nightmare is on. I saw that when I use the eager add to be used in my application, then for example, 3 table / POCOs like 1, POCO and I just 2 I want to retrieve the tables, but when I generate T-SQL, all 3 tables will be received, how do I remove Table 3?

Poko

  Public class table A {Public Virtual Ilkonak & lt; TableB & gt; B {received; Set; }} Public class TableB {Public virtual icon & lt; TableC & gt; C {Receive; Set; }} Public class TableC {}   

LINQ

  var rs = (from context.A.Include to Family (" B ") Select Family) .SingleOrDefault ();    

If you want properly grain control, which the institutions are full, then its Use: db.configuration.LazyLoadingEnabled = false;

Note that for each example of your DbContext, you can get lazy loading or loading curious.

You should not try to use both at the same example.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -