Search code examples
c#.netlinq-to-sqlpersistence-ignorance

Persistance Ignorance Linq to SQL


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.


Solution

  • 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.