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 ICollectionposting { get; set; }
}
Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE