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 FM.Data.CodeGenerator -Version
dotnet add package FM.Data.CodeGenerator --version
<PackageReference Include="FM.Data.CodeGenerator" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FM.Data.CodeGenerator --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Intial Release

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 985 3/23/2013 528 3/23/2013 435 3/23/2013 549 12/17/2012 448 12/17/2012 456 12/16/2012 460 12/16/2012 429 12/15/2012