Готовая третья

This commit is contained in:
dimazhelovanov 2023-03-11 16:25:08 +03:00
parent 3b650532c4
commit 95ba236d9a
4 changed files with 6 additions and 4 deletions

View File

@ -15,9 +15,7 @@ optionsBuilder)
{
if (optionsBuilder.IsConfigured == false)
{
optionsBuilder.UseSqlServer(@"Data
Source=CHESHIR\SQLEXPRESS;Initial BlacksmithWorkshopDatabaseFull;Integrated
Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-ON2V3BB\SQLEXPRESS;Initial Catalog=BlacksmithWorkshopDatabaseFull;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
}
base.OnConfiguring(optionsBuilder);
}

View File

@ -24,4 +24,8 @@
<ProjectReference Include="..\BlacksmithWorkshopDataModel\BlacksmithWorkshopDataModel.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Migrations\" />
</ItemGroup>
</Project>

View File

@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace BlacksmithWorkshopDatabaseImplement.Migrations
{
[DbContext(typeof(BlacksmithWorkshopDatabase))]
[Migration("20230226193259_InitMigration")]
[Migration("20230310215555_InitMigration")]
partial class InitMigration
{
/// <inheritdoc />