What's the following NHibernate lazy loading equivalent to Entity Framework?
product.Categories.Add(s.Load<Category>(cat));
I tried this, but it read the Category table from the database:
product.Categories.Add(db.Categories.Find(cat));
What's the following NHibernate lazy loading equivalent to Entity Framework?
product.Categories.Add(s.Load<Category>(cat));
I tried this, but it read the Category table from the database:
product.Categories.Add(db.Categories.Find(cat));