Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VIEWS and Fluent NHibernate?

It's possible to map a VIEW using Fluent NHibernate? If so, how?

like image 831
rguerreiro Avatar asked May 07 '09 15:05

rguerreiro


1 Answers

I would think you could just replace your the table name with your view name using the WithTable method:

WithTable("myview");

Edit: Just to update this answer, Fluent NHibernate now uses:

Table("myview");
like image 56
mxmissile Avatar answered Sep 22 '22 07:09

mxmissile



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!