Currently I'm using Fluent NHibernate to automatically create my db schema with automappings.
Is there any facility in Fluent NHibernate to specify a view? An external app needs to access my data through database views and I would prefer to create them from within code rather than apply scripts to my database after NHibernate has created the DB schema. The views dont need to be updatable.
If Fluent NHibernate is not capable of this, what might be the best way to automate the creation of these views short of manually constructing an sql string? I really like the idea of the DB being totally configured from my domain entities and would prefer to keep everything in code.