commiting errors
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Business.Businesses;
|
||||
using Models.Models;
|
||||
|
||||
|
||||
namespace Business.Business
|
||||
namespace Business.Businesses
|
||||
{
|
||||
public class ProductBusiness
|
||||
{
|
9
LuminousSales/Business/ProductContext.cs
Normal file
9
LuminousSales/Business/ProductContext.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Business.Business
|
||||
{
|
||||
internal class ProductContext
|
||||
{
|
||||
public ProductContext()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,5 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
using Models.Models;
|
||||
|
||||
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;");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user