commiting errors

This commit is contained in:
Aneliya Konarcheva
2021-03-10 12:15:21 +02:00
parent 4b1b438381
commit 08fd6e67e8
10 changed files with 20 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Business.Businesses;
using Models.Models;
namespace Business.Business namespace Business.Businesses
{ {
public class ProductBusiness public class ProductBusiness
{ {

View File

@@ -0,0 +1,9 @@
namespace Business.Business
{
internal class ProductContext
{
public ProductContext()
{
}
}
}

View File

@@ -1,5 +1,5 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Models.Models;
namespace LuminousSales.Data namespace LuminousSales.Data
{ {
@@ -9,6 +9,12 @@ namespace LuminousSales.Data
{ {
} }
public DbSet<Product> Products { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
}
} }
} }