visual studio is drunk

This commit is contained in:
Aneliya Konarcheva
2021-03-10 22:32:21 +02:00
parent 781a2873fd
commit a97dd1c2cc
23 changed files with 118 additions and 37 deletions

View File

@@ -16,8 +16,7 @@ namespace Models
public DbSet<Stock> Stock { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(
@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security=True");
optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security=True;");
}
}
}

View File

@@ -5,6 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.17.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.12">

View File

@@ -1,6 +1,5 @@
using Models.Models.Interfaces;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Models.Models
{

View File

@@ -1,6 +1,6 @@
using Models.Models.Interfaces;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Models.Models
{

View File

@@ -1,7 +1,7 @@
using Models.Models.Interfaces;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace Models.Models