blah blah blah is here! blah blah » Close

0
votes
0 answers

when do you use a ISet and IList in nhibernate mapping collections?

I am a little confused, just looking at some sample code I noticed at times they use ISet<Entity> and other times I see IList<Entity>. What is the difference between the two collection types in nhibernate?

0
votes
0 answers

Using nhibernate, persisting my entity I get an error saying I cannot insert explicit value for identity column

Trying to save my entity to the database. Error message: [code]Cannot insert explicit value for identity column in table 'Order' when IDENTITY_INSERT is set to OFF.[/code] My hbm.xml mapping for the entity is: [code] <id nam ...

0
votes
0 answers

How to use the repository pattern with nhibernate

I just came accross nhibernate recently, and I would like some generic way of handling all my basic database calls like create, delete, select and get. Is there an already pre-build repository pattern with nhibernate?

0
votes
0 answers

Using nHibernate, How do I set my map to use lazy loading?

I have a map for my entity, and I want the entity to be lazy loaded as it has collections that I don't reference all the time. The goal is the keep the query count as low as possible for some of my classes collections that require db cal ...

Feedback