Support for importing classes in mapping.

Description

I have many reporting queries. Totals from these queries are fetched into my custom classes.
NHibernate requires these classes to be imported.
In xml I had something like this:
<import class="DomainModel.BalanceTotals, DomainModel" rename="BalanceTotals"/>
and in FNH it was as simple as this:
ImportType<BalanceTotals>();
With mapping by code there is no way to do that.
I need a way to import classes by code. Better alternative would be to remove import at all: in Java's Hibernate it is not necessary (and not possible). It seems to be possible to do in C# because it was possible in Java.

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created April 26, 2012 at 1:48 PM
Updated September 21, 2014 at 12:42 PM
Resolved May 1, 2012 at 8:15 PM
Who's Looking?