I\'m fairly new to NHibernate, and I need to ask a couple of questions relating to a very frequent scenario. The following simplified example illustrates the problem.
I have an interface IUserLocation and a concrete type UserLocation. When I use ICriteria, specifying the interface IUserLocation, I want NHibernate to instantiate a collection of the concrete UserLoc
In my MySQL database, I have the following column type. Field|Type|Null | ----------------------------------
I have a mapping file <set name=\"Friends\" table=\"Friends\"> <key column=\"UserId\"/> <many-to-many class=\"User\" column=\"FriendId\"/>
I need a Fluent NHibernate mapping that will fulfill the following (if nothing else, I\'ll also take the appropriate NHibernate XML mapping and reverse engineer it).
Our customer wants us to use a connectionstring with username = "external" and add schemaName "original" infront of our queries like:
In .hbm.xml the mapping I am after would look as follows - any idea how I can reproduce this in Fluent NHibernate...?
I have an existing database schema and wish to replace the custom data access code with Fluent.NHibernate. The database schema cannot be changed since it already exists in a shipping product. And it i
I couldn\'t find an answer to this specific question.I am trying to keep my domain model object-or开发者_JAVA技巧iented and re-use objects where possible.I am having an issue determining how to provid
I am working with a legacy database that stores \"blank\" values as a single space.Is there a way with Fluent NHibernate, either by way of a convention or mapping override, that I can translate this \