user39880
user39880

Reputation:

Querying unmapped properties in nhibernate

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.

Upvotes: 5

Views: 531

Answers (1)

Roger That
Roger That

Reputation: 101

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

Upvotes: 4

Related Questions