Last active
April 24, 2020 16:50
-
-
Save robsonfaxas/6f49853af9dbd953d5248fecdc125f57 to your computer and use it in GitHub Desktop.
[ASP.NET Core TW - Entity Framework Core com Postgres] Pacotes para EF + Postgresql #DotNetCore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instalação do pacote | |
dotnet add package Microsoft.EntityFrameworkCore | |
// Ferramentas do EntityFramework | |
dotnet add package Microsoft.EntityFrameworkCore.Tools.Dotnet | |
// Dependencias Npgsql para operar com Postgres no EntityFramwork | |
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL | |
// Dependencia do Npgsql para trabalhar com entity framework code-first | |
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL.Design | |
// Setando referencia para determinar que o EntityFrameworkCore.Tools será utilizado no CLI | |
// INICIO | |
// 1 - Pegue este pacote: | |
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools.Dotnet" Version="2.0.3" /> | |
// 2 - Coloque o mesmo na tag DotNetCliToolReference, com mesa versão, conforma abaixo: | |
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.Dotnet" Version="2.0.3" /> | |
// FIM | |
// Restore no final | |
dotnet restore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment