Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all!

I am trying to find a tool that generates a C# class and an XML file for using in NHibernate from MySql Db schema.

Any help is greatly appreciated.
Posted
Updated 4-Apr-11 23:51pm
v2

DataTable tblSchema = dc.GetDataReader(cmd).GetSchemaTable();
 tblSchema.WriteXml(ConfigurationManager.AppSettings["XMLPath"].ToString() + tableName, true);


This way you can generate xml , Am not sure how can we generate an entity class.
 
Share this answer
 
So I've found a solution by myself.

If you have similar problem, downoad and install MyGeneration, then download this template and push "run" button. All code files will be generated!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900