I\'m having a bit of an issue with Nhibernate / Fluent NHibern开发者_如何学运维ate I have a class that has a collection and a backing field, and methods for manipulating the collection like so:
How do you call a stored procedure with nHibernate?开发者_开发技巧 Specifically there are two cases where I am using store procedures: to return a scalar value and to return a set of results mapped t
I have two classes: public class Person{ public virtual string Name { get; set;} public virtual Address Address { get; set; }
As I read here http://www.theserverside.net/tt/articles/showarticle.tss?id=NHibernate for example public class Department
Please consider the following simple use case: public class Foo { public virtual int Id { get; protected set; }
In my database I\'ve got Users and UserGroups which have a many-to-many relation. The User has a set of UserGroup, the UserGroup domain object does not see the User.
Say i have a cms with only one object called Article (for the sake of this example) with an ID and a title. This CMS implementation becomes part of a framework and is used as a library: e.g. CMSFactor
I\'m trying to wrap my he开发者_如何学JAVAad around linq -> nhib I have a simple bit of sql that i\'m trying to get working in nhibernate.linq
I\'m having trouble with saving an object into my database using NHibernate. My code looks like this: Image image = new Image { Url = \'test.jpg\' };
I have a suite of integration tests that run inside transactions. Sometimes it seems that NHibernate transactions are not being correctly rolled back. I can\'t work out what causes this.