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 Poko LINQ If you want properly grain control, which the institutions are full, then its Use: 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. 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?
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 {}
var rs = (from context.A.Include to Family (" B ") Select Family) .SingleOrDefault ();
db.configuration.LazyLoadingEnabled = false;
Comments
Post a Comment