Digitrish.PocoFromDB
1.0.0
See the version list below for details.
dotnet add package Digitrish.PocoFromDB --version 1.0.0
NuGet\Install-Package Digitrish.PocoFromDB -Version 1.0.0
<PackageReference Include="Digitrish.PocoFromDB" Version="1.0.0" />
paket add Digitrish.PocoFromDB --version 1.0.0
#r "nuget: Digitrish.PocoFromDB, 1.0.0"
// Install Digitrish.PocoFromDB as a Cake Addin #addin nuget:?package=Digitrish.PocoFromDB&version=1.0.0 // Install Digitrish.PocoFromDB as a Cake Tool #tool nuget:?package=Digitrish.PocoFromDB&version=1.0.0
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
Learn more about Target Frameworks and .NET Standard.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial Release