문제

i have 2 slq servers with many databases on each one. I've searched the documentation of PetaPoco but i can't find how to auto generate class files for each of the tables/databases on the servers.

Exist such a feature o i will have to go with custom solution?

In any case i only need a basic model of the DBs capable to start working... The overall schema is very big to do it manually.

thanks in advance.

도움이 되었습니까?

해결책

http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d

When right-clicking on a C# project, the following context menu functions are supported:
Reverse Engineer Code First - Generates POCO classes, derived DbContext and Code First mapping for an existing database.

You can grab the POCO's and ignore the rest.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top