Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Create table in SQL Server from hbm mapping file and class nHibernate

Dot Net developer:

I am a beginner in nHibernate . I created mapping files and classes in Visual Studio. Now I want the tables to be created in Sql Server by writing code , not by manually adding tables in SSMS. Is there any way to do so? I have more than 50 classes. I have both .hbm.xml and .cs Class files.

My hbm mapping file looks like:





















My class file looks like:


public class Transaction
{
public virtual decimal transaction_id { get; set; }
public virtual DateTime entered_date { get; set; }
public virtual DateTime transaction_date { get; set; }
public virtual ICollection posting { get; set; }
}



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Create table in SQL Server from hbm mapping file and class nHibernate

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×