visual studio is drunk
This commit is contained in:
@@ -4,6 +4,16 @@
|
|||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</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">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Models\Models.csproj" />
|
<ProjectReference Include="..\Models\Models.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LuminousSales.Data;
|
|
||||||
|
|
||||||
namespace LuminousSales.Business
|
|
||||||
|
namespace Business
|
||||||
{
|
{
|
||||||
public class DealsBusiness
|
public class DealsBusiness
|
||||||
{
|
{
|
@@ -1,12 +1,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LuminousSales.Data;
|
|
||||||
|
|
||||||
namespace LuminousSales.Business
|
|
||||||
|
namespace Business
|
||||||
{
|
{
|
||||||
public class PermissionsBusiness
|
public class PermissionsBusiness
|
||||||
{
|
{
|
||||||
private PermissionContext permissionContext;
|
private PermissionContext permissionContext;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,10 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Business.Businesses;
|
|
||||||
using Models.Models;
|
using Models.Models;
|
||||||
|
|
||||||
|
namespace Business
|
||||||
namespace Business.Businesses
|
|
||||||
{
|
{
|
||||||
public class ProductBusiness
|
public class ProductBusiness
|
||||||
{
|
{
|
@@ -1,9 +0,0 @@
|
|||||||
namespace Business.Business
|
|
||||||
{
|
|
||||||
internal class ProductContext
|
|
||||||
{
|
|
||||||
public ProductContext()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LuminousSales.Data;
|
|
||||||
|
|
||||||
namespace LuminousSales.Business
|
|
||||||
|
namespace Business
|
||||||
{
|
{
|
||||||
public class RolesBusiness
|
public class RolesBusiness
|
||||||
{
|
{
|
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LuminousSales.Data;
|
|
||||||
|
|
||||||
namespace LuminousSales.Business
|
namespace LuminousSales.Business
|
||||||
{
|
{
|
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LuminousSales.Data;
|
|
||||||
|
|
||||||
namespace LuminousSales.Business
|
namespace LuminousSales.Business
|
||||||
{
|
{
|
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LuminousSales.Data;
|
using Microsoft.ApplicationInsights.Extensibility.Implementation;
|
||||||
|
|
||||||
namespace LuminousSales.Business
|
namespace Business
|
||||||
{
|
{
|
||||||
public class UsersBusiness
|
public class UsersBusiness
|
||||||
{
|
{
|
@@ -1,12 +1,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using LuminousSales.Data;
|
|
||||||
|
|
||||||
namespace LuminousSales.Business
|
|
||||||
|
namespace Business
|
||||||
{
|
{
|
||||||
public class UsersToRolesBusiness
|
public class UsersToRolesBusiness
|
||||||
{
|
{
|
||||||
private UsersToRolesContext usersToRolesContext;
|
private UsersToRolesContext usersToRolesContext;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -2,14 +2,24 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Models.Models;
|
||||||
|
|
||||||
namespace LuminousSales.Data
|
namespace LuminousSales.Data
|
||||||
{
|
{
|
||||||
public class DealContext : DbContext
|
public class DealContext : DbContext
|
||||||
{
|
{
|
||||||
public DealContext()
|
public DealContext() : base()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DbSet<Deal> Deal { get; set; }
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
{
|
||||||
|
optionsBuilder.UseSqlServer(@"Server= (localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,14 +2,24 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Models.Models;
|
||||||
|
|
||||||
namespace LuminousSales.Data
|
namespace LuminousSales.Data
|
||||||
{
|
{
|
||||||
public class PermissionContext: DbContext
|
public class PermissionContext: DbContext
|
||||||
{
|
{
|
||||||
public PermissionContext()
|
public PermissionContext() : base()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public DbSet<Permission> Permission { get; set; }
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
{
|
||||||
|
optionsBuilder.UseSqlServer(@"Server= (localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Models.Models;
|
||||||
|
|
||||||
namespace LuminousSales.Data
|
namespace LuminousSales.Data
|
||||||
{
|
{
|
||||||
@@ -11,7 +11,16 @@ namespace LuminousSales.Data
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public DbSet<Role> Role { get; set; }
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
{
|
||||||
|
optionsBuilder.UseSqlServer(@"Server= (localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Models.Models;
|
||||||
|
|
||||||
namespace LuminousSales.Data
|
namespace LuminousSales.Data
|
||||||
{
|
{
|
||||||
@@ -10,7 +11,17 @@ namespace LuminousSales.Data
|
|||||||
public RolesToPermissionContext():base()
|
public RolesToPermissionContext():base()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public DbSet<Role> RoleToPermission { get; set; }
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
{
|
||||||
|
optionsBuilder.UseSqlServer(@"Server= (localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@@ -2,14 +2,24 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Models.Models;
|
||||||
|
|
||||||
namespace LuminousSales.Data
|
namespace LuminousSales.Data
|
||||||
{
|
{
|
||||||
public class StockContext:DbContext
|
public class StockContext:DbContext
|
||||||
{
|
{
|
||||||
public StockContext()
|
public StockContext():base()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public DbSet<Stock> Stock { get; set; }
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
{
|
||||||
|
optionsBuilder.UseSqlServer(@"Server= (localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Models.Models;
|
||||||
|
|
||||||
namespace LuminousSales.Data
|
namespace LuminousSales.Data
|
||||||
{
|
{
|
||||||
@@ -11,5 +12,14 @@ namespace LuminousSales.Data
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DbSet<User> User { get; set; }
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
{
|
||||||
|
optionsBuilder.UseSqlServer(@"Server= (localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Models.Models;
|
||||||
|
|
||||||
namespace LuminousSales.Data
|
namespace LuminousSales.Data
|
||||||
{
|
{
|
||||||
@@ -11,5 +12,13 @@ namespace LuminousSales.Data
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public DbSet<Role> Role { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
{
|
||||||
|
optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security = true;");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -7,6 +7,16 @@
|
|||||||
<StartupObject />
|
<StartupObject />
|
||||||
</PropertyGroup>
|
</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">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Business\Business.csproj" />
|
<ProjectReference Include="..\Business\Business.csproj" />
|
||||||
<ProjectReference Include="..\Models\Models.csproj" />
|
<ProjectReference Include="..\Models\Models.csproj" />
|
||||||
|
@@ -16,8 +16,7 @@ namespace Models
|
|||||||
public DbSet<Stock> Stock { get; set; }
|
public DbSet<Stock> Stock { get; set; }
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
{
|
{
|
||||||
optionsBuilder.UseSqlServer(
|
optionsBuilder.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security=True;");
|
||||||
@"Server=(localdb)\mssqllocaldb;Database=LuminousSales;Integrated Security=True");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -5,6 +5,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.17.0" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.12" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.12" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.12" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.12" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.12">
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.12">
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
using Models.Models.Interfaces;
|
using Models.Models.Interfaces;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace Models.Models
|
namespace Models.Models
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
using Models.Models.Interfaces;
|
using Models.Models.Interfaces;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
|
|
||||||
namespace Models.Models
|
namespace Models.Models
|
||||||
{
|
{
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
using Models.Models.Interfaces;
|
using Models.Models.Interfaces;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Models.Models
|
namespace Models.Models
|
||||||
|
Reference in New Issue
Block a user