It's possible to map a VIEW using Fluent NHibernate? If so, how?
+9
A:
I would think you could just replace your the table name with your view name using the WithTable method:
WithTable("myview");
mxmissile
2009-05-07 15:50:33
+2
A:
mxmissile's answer is correct but I wanted to add that the view will have to be updateable (SQL Server term.) if you want to do inserts or updates against it. I have several tables mapped against views that filter out inactive records because these tables allow soft deletes.
Jamie Ide
2009-05-07 15:54:57
If I recall, these "updateable" views are title Indexed Views? It's been awhile since I had to deal with this stuff.
mxmissile
2009-05-12 22:04:46