I am using the Specification pattern, and have a working implementation (taken from the WhoCanHelpMe Codeplex project) for getting data via NLinq, generic repositories and all that goodness.
It seems like the following scenario shouldn\'t be uncommon, but I can\'t figure out how to handle it in FluenNHibernate:
I have a collection mapped as a query only property following Ayende\'s example. My mapping is: HasMany<Employee>(Reveal.Member<Company>(\"_employees\")).Access.None();
public Parent GetByName(string Name) { return _session.CreateCriteria<Parent>() .Add(Restrictions.Eq(\"Name\", Name))
I have a query which has an Order By clause. The generated SQL fro开发者_Go百科m NHibernate looks like
I\'m trying to map a List with an index column. This works fine, but I would also like to be able to query the index column from HQL. When I do that HQL throws an exception:
I\'m using Sharp Architecture for an MVC application and I\'m trying to generate a nhibernate criterion query for the following SQL:
I have enabled 2nd level cache in FluentNHibernate: Fluently.Configure() .Database(MsSqlConfiguration.MsSql2005
What is the new SetAttribute() in FNH mapping? I need to set my discriminator value on subclass because String is not preferred - old post
i have the following db structure: Users: - UserID - UserName - FirstName - LastName ... UsersLog: - UserLogID