Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipementel/deploy.entityframwork.analize.v1
https://github.com/felipementel/deploy.entityframwork.analize.v1
ef ef-core entity-framework-core migrations
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/felipementel/deploy.entityframwork.analize.v1
- Owner: felipementel
- License: mit
- Created: 2024-02-08T22:06:35.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T11:30:06.000Z (24 days ago)
- Last Synced: 2024-11-29T12:29:09.042Z (24 days ago)
- Topics: ef, ef-core, entity-framework-core, migrations
- Language: C#
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EntityFramework Commands
```
dotnet tool install --global dotnet-ef
```
```
$env:MigrationName = "InitDatabaseCommit";
``````
dotnet ef migrations add $env:MigrationName --startup-project ./src/DEPLOY.EntityFramework.v1 --project ./src/DEPLOY.EntityFramework.v1 --context DEPLOY.EntityFramework.v1.Infra.Database.DeployDbContext --output-dir Migrations/EF -v
```
```
dotnet ef database update $env:MigrationName -s ./src/DEPLOY.EntityFramework.v1 -p ./src/DEPLOY.EntityFramework.v1 -c DEPLOY.EntityFramework.v1.Infra.Database.DeployDbContext --verbose
```
```
dotnet ef migrations script --project .\src\DEPLOY.EntityFramework.v1\DEPLOY.EntityFramework.v1.csproj -o .\src\DEPLOY.EntityFramework.v1\Migrations\SQL\$env:MigrationName.sql
```Connection String
```
Server=tcp:sql-canal-deploy.database.windows.net,1433;Initial Catalog=daploy-ef-analizer;Persist Security Info=False;User ID=felipementel;Password=Abcd1234%;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
```