Here are some links I've bumped into of late in playing with NHibernate:
- http://www.codeproject.com/Articles/21122/NHibernate-Made-Simple shows off a lot of old school XML mapping gunk for NHibernate without Fluent NHibernate.
- http://www.nileshgule.com/2010/09/nhibernate-code-first-approach-with.html suggests there is a way to do a "code first" implementation of NHibernate not unlike "code first" Entity Framework, allowing one's code classes (written first) to build out one's database
- http://stackoverflow.com/questions/4045335/fluent-nhibernate-unexpected-row-count-0-expected-1 shows Not.LazyLoad(); in Fluent NHibernate mappings which I'd imagine would turn off lazy loading though I was not able to see an effect when I played with it. Table("whatever"); perhaps casts in stone the name of the table to used at a map.
- http://stackoverflow.com/questions/8062068/nhibernate-error-message-invalid-index-3-for-this-sqlparametercollection-with-c touches on the mysteries of composite keys with Fluent NHibernate. The example:
CompositeId()
.KeyReference(x => x.BillHeader, "BillNo")
.KeyProperty(x => x.SeqNo, "SeqNo");
No comments:
Post a Comment