views:

135

answers:

1

I am working with Linq-To-NHibernate. I need to use some properties that is not mapped to columns.

For example

Repository<Person>
   .Find()
   .Select(p => new PersonModel() { Id = p.Id, FullName= p.FullName,Position = p.Position });

The position is not a mapped property, it contains some logic. I got unmapped property error.

Thanks.

+4  A: 

Not possible, and not likely to be supported in short term.

Tuna Toksoz