2

I am switching a repository layer from linq to dapper. In linq, I can use the SqlMetal.exe tool to generate the database entities and relationships. Is there a tool or utility that will generate POCO entities for dapper?

4

1 回答 1

2

Dapper does not have a model generator, it acts as extension on your current IDBConnection.

You could use any other tool to generate the POCO's though. All Dapper needs is a class matching its public properties with your db columns.

于 2013-04-27T10:05:22.567 回答