FM.Data.CodeGenerator NuGet Package

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}
Ex:
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.




Got any FM.Data.CodeGenerator Question?





Info

Version: 1.0.0.9
Author(s): Francis Marasigan
Last Update: Saturday, March 23, 2013
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/FM.Data.CodeGenerator


Install
Install-Package FM.Data.CodeGenerator
dotnet add package FM.Data.CodeGenerator
paket add FM.Data.CodeGenerator
FM.Data.CodeGenerator Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

1

days-since-last-release

4042