Selasa, 22 Maret 2011
NHibernate and default constructors
One of the first things you learn about NHibernate is that in order for it to be able construct your instances and take advantage of lazy loading every persistent class must have the default, parameterless constructor. This leads to having entities looking like this (standard blog with posts and comments example). public class Post{ private readonly IList comments = new List
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar