I have a project to update a web app, which has a mature MSSQL database, to use ASP.Net MVC and NHibernate. The old Subsonic DAL is to be replaced so I've been looking into Fluent NHibernate.
The "My first Fluent NH" test app went well but getting the database to auto build the entity classes was more hit and miss.
I used NHibernate Mapping Generator which did a fair job at auto building the code but fell short when it came to foreign keys and keys that were made up of more than one column.
I think I'll end up using what was auto generated as a starting point to building new entity classes by hand, then auto build the DB from them. Interesting.. <scratched head>
No comments:
Post a Comment