logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NConstruct and Objects to Database Schema
faqadmin
#1 Posted : Friday, June 03, 2011 9:04:59 PM(UTC)
Rank: Member

Groups: Member
Joined: 9/9/2007(UTC)
Posts: 27
Points: 81

[this question was raised outside the forum]

Does NConstruct support reverse mapping (Objects to Database Schema)?

_______________________

NConstruct Support Team
support@nconstruct.com
http://www.nconstruct.com
_______________________
faqadmin
#2 Posted : Friday, June 03, 2011 9:25:15 PM(UTC)
Rank: Member

Groups: Member
Joined: 9/9/2007(UTC)
Posts: 27
Points: 81

Hi,

There is no need for a special application (like NConstruct builder) for reverse engineering when using NHibernate. There are already tools for it in a NHibernate itself. You can read more about it in NHibernate documentation here:

http://www.nhforge.org/doc/nh/en/index.html#toolsetguide-s1

http://nhforge.org/blogs/nhibernate/archive/2008/12/15/customizing-schema-export-with-schema-action.aspx

A Test driven development example can be found here:

http://nhforge.org/wikis/howtonh/your-first-nhibernate-based-application.aspx

Short description would be:

You create your data classes (similar like in Code First on Entity Framework 4.1) and their mapping and call:

Quote:
var schemaExport = new SchemaExport(config);
schemaExport.Create(...);


You do not need an application for that!

There are also two other ways to create your database but there is a decent
learning curve for both options:

1. You can use Fluent NHibernate:

http://wiki.fluentnhibernate.org/Auto_mapping

2. Or you can use ConfORM:

http://code.google.com/p/codeconform/

Hope this helps.

Best regards,
Sebastijan Pistotnik

_______________________

NConstruct Support Team
support@nconstruct.com
http://www.nconstruct.com
_______________________
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 1.033 seconds.