This is a Scaffold extension to generate POCO class, Mapping class, Repository pattern class and DbContext. Very helpful in database-first approach without needing .edmx.
Usage: On Package Manager Console type the following command:
Scaffold PocoFromDB {your-connection-string} {contextName} {table name or your select query} {entityname} {providerName}
Scaffold PocoFromDB "Data Source=C:\DB\Foo.sdf" FooContext Customer CustomerEntity "System.Data.SqlServerCe.4.0"
Scaffold PocoFromDB "Data Source=C:\DB\Foo.sdf" FooContext "SELECT FirstName, LastName FROM Customer" CustomerEntity "System.Data.SqlServerCe.4.0"          
Special Note:
If your connection string contains special character/reserve for PowerShell such as '$', you need escape it with '`' character. Example: pa$$word01 will be pa`$`$word01

Install-Package Digitrish.PocoFromDB -Version
dotnet add package Digitrish.PocoFromDB --version
<PackageReference Include="Digitrish.PocoFromDB" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Digitrish.PocoFromDB --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Digitrish.PocoFromDB,"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes
- Bug fixes.
- Bug fixes.

- Bug fixes
- Renamed All to Get and convert it to method.
- Remove Entity word from mapping/config class and repository class
- Initial release.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 1,182 9/25/2013 694 9/25/2013 642 9/25/2013
1.0.0 696 9/22/2013