Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nHibernate - Generate classes from a database?

Tags:

orm

nhibernate

I know that you can generate a database from classes and their mappings using nHibernate, but I can't find any good links to do this the other way around. We have a database that has already been designed, and we are looking at using nHibernate. It would be nice to use a tool to generate the mappings and classes from the database, and then we could tweak/manipulate them to suit our tastes.

like image 615
Codezy Avatar asked May 04 '09 17:05

Codezy


People also ask

What is the difference between NHibernate and fluent NHibernate?

Fluent NHibernate offers an alternative to NHibernate's standard XML mapping files. Rather than writing XML documents, you write mappings in strongly typed C# code. This allows for easy refactoring, improved readability and more concise code.

What is NHibernate mapping?

NHibernate is an object–relational mapping (ORM) solution for the Microsoft . NET platform. It provides a framework for mapping an object-oriented domain model to a traditional relational database.

Is NHibernate an ORM?

NHibernate is a popular, fast growing ORM with a helpful community of seasoned developers. Used in thousands of commercial and open source projects.


1 Answers

NHibernate Mapping Generator

like image 185
Carl Hörberg Avatar answered Nov 14 '22 07:11

Carl Hörberg