Wednesday, May 4, 2011

Entity framework class generator

I wrote a sql script to generate entity framework POCO classes: https://gist.github.com/954916

Script considers primary and foreign keys including both "one to one" and "one to many" relations.

It also writes sql object descriptions saved as extended properties to the class and property comments of POCO classes.

It is working for MS SQL 2008 and 2008 R2. I did not try to run the script on other versions.

No comments:

Post a Comment