I have an existing domain layer. I want to develop the persistence layer using Linq to SQL. I am currently using an external map file. I am trying to use lazy loading for my child collections but am unsuccessful. Is there a way to implement lazy loading using Linq to SQL but without using EntitySet or EntityRef.
C# – Persistance Ignorance Linq to SQL
clinq-to-sqlnetpersistence-ignorance
Related Topic
- C# – the syntax for an inner join in LINQ to SQL
- C# – Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
- C# – Convert Linq Query Result to Dictionary
- C# – When to use .First and when to use .FirstOrDefault with LINQ
- .net – LINQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
- C# – LINQ Aggregate algorithm explained
- C# – Group by in LINQ
Best Answer
I can't guarantee that I'm up to the latest development of LTS, but previously you had to you use EntitySet/EntityRef to get lazy loading.
You're best bet is NHibernate if you want a PI-model.