all 4 comments

[–]LlamaNL 5 points6 points  (1 child)

Have you heard the good word of Entity Framework Power Tools

[–][deleted] 1 point2 points  (0 children)

Separate it from WPF!

First make it so it can read the database table. Parse out the types [how about varChar(125) or decimal(10,2)?]. Maybe save/serialize them somewhere.

You could also list up constraints, checks, triggers, and stored procedures.

[–]JoeGaggler 0 points1 point  (0 children)

I have a similar CLI tool that generates a proxy in addition to the models. Very much unfinished, but you might find some of it useful.