I have inherited a Spring+NHibernate c# app that we are doing a major overhaul on (and I\'m fairly new to NHibernate).The user/role set up in the database was less than optimal so I\'m rewriting it si
I am currently using NHibernate with Spring.Net and using Spring\'s Open Session In View module. As far as I can tell, this module only opens the session on BeginRequest and closes it on EndRequest. I
For instance, in this example Employee and Address has a many-to-many relationship, and an Employee class has a property
Say we have a system that stores details of clients, and a system that stores details of employees (hypothetical situation!). When the EmployeeSystem access an Employee, the Client information is acce
Following on from this question: NHibernate: Lazy loading of IUserType Seeing as I can\'t lazy load a property or a one-to-one relationship, is there a way I can use an IUserType with a many-to-one?
In the test below, the mocked datareader returns the desired value the first time, but then returns the same value when the index should be 1.
Is there any way of telling fluent NHibernate not to use a column called [version] for concurrency checking?It seems to do this automagically if it finds a column called [version] - and in this case I
I have the following code: public class Hotel { public int ID { get;set } public IList<Photo> Photos {
public class AdminUser { publ开发者_如何学编程ic virtual int Id { get; set; } public virtual string UserName { get; set; }
Comparing the following output with samples I\'ve seen here at Stack Overflow and over the internet makes me wonder what am I doing wrong, as apparently both the show_sql and format_sql properties are