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 984 3/23/2013 527 3/23/2013 434 3/23/2013 548 12/17/2012 447 12/17/2012 455 12/16/2012 459 12/16/2012 428 12/15/2012