The core infrastructure backend (API, database, Docker, etc).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
renovate[bot] 43eea0d297
[deps] Billing: Update Braintree to v5.21.0 (#3537)
2 years ago
..
Migrations [PM-1188] Server owner auth migration (#2825) 3 years ago
Factories.cs [SM-394] Secrets Manager (#2164) 3 years ago
README.MD [SM-394] Secrets Manager (#2164) 3 years ago
SqlServerEFScaffold.csproj [deps] SM: Update EntityFrameworkCore (#3494) 2 years ago
packages.lock.json [deps] Billing: Update Braintree to v5.21.0 (#3537) 2 years ago

README.MD

Usage

The SqlServerEFScaffold project is intended to be used as a tool for developers to validate their Microsoft SQL Server database changes and Infrastructure.EntityFramework.Models stay in sync for entity framework MS SQL Server repositories.

Check Infrastructure.EntityFramework.Models (Database First)

Run the following:

dotnet ef dbcontext scaffold "<local db connection string>" Microsoft.EntityFrameworkCore.SqlServer -o Model

The dotnet entity framework command will generate models from the local database provided.

Engineers can reference these models and validate they match with Infrastructure.EntityFramework.Models.

Check Microsoft SQL Server Database changes (Code/Model First)

Run the following:

dotnet ef migrations add Init
dotnet ef migrations script

This will generate a SQL script to initialize a database based on the models in Infrastructure.EntityFramework.Models.

This is helpful to check against the proposed database changes provided in /src/SQL