Create directories for layers
This commit is contained in:
parent
c01b6e8c77
commit
6dfa6908b1
20 changed files with 33 additions and 33 deletions
|
@ -1,8 +1,8 @@
|
||||||
using NG_2023_Kanban.DbStartup;
|
using NG_2023_Kanban.DataLayer.DbStartup;
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.Service
|
namespace NG_2023_Kanban.BusinessLayer.Service
|
||||||
{
|
{
|
||||||
public class DbService
|
public class DbService
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using NG_2023_Kanban.EntityConfiguration;
|
using NG_2023_Kanban.DataLayer.EntityConfiguration;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.DbStartup
|
namespace NG_2023_Kanban.DataLayer.DbStartup
|
||||||
{
|
{
|
||||||
public class DatabaseContext : DbContext
|
public class DatabaseContext : DbContext
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.DbStartup
|
namespace NG_2023_Kanban.DataLayer.DbStartup
|
||||||
{
|
{
|
||||||
public class DbInitializer
|
public class DbInitializer
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using NG_2023_Kanban.Service;
|
using NG_2023_Kanban.BusinessLayer.Service;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.DbStartup
|
namespace NG_2023_Kanban.DataLayer.DbStartup
|
||||||
{
|
{
|
||||||
public static class Injecting
|
public static class Injecting
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.Entities
|
namespace NG_2023_Kanban.DataLayer.Entities
|
||||||
{
|
{
|
||||||
public abstract class BaseEntity
|
public abstract class BaseEntity
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.Entities
|
namespace NG_2023_Kanban.DataLayer.Entities
|
||||||
{
|
{
|
||||||
public class Board : BaseEntity
|
public class Board : BaseEntity
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.Entities
|
namespace NG_2023_Kanban.DataLayer.Entities
|
||||||
{
|
{
|
||||||
public class Card : BaseEntity
|
public class Card : BaseEntity
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.Entities
|
namespace NG_2023_Kanban.DataLayer.Entities
|
||||||
{
|
{
|
||||||
public class Column : BaseEntity
|
public class Column : BaseEntity
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.Entities
|
namespace NG_2023_Kanban.DataLayer.Entities
|
||||||
{
|
{
|
||||||
public class Comment : BaseEntity
|
public class Comment : BaseEntity
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.Entities
|
namespace NG_2023_Kanban.DataLayer.Entities
|
||||||
{
|
{
|
||||||
public class User : BaseEntity
|
public class User : BaseEntity
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.EntityConfiguration
|
namespace NG_2023_Kanban.DataLayer.EntityConfiguration
|
||||||
{
|
{
|
||||||
public class BoardConfiguration : IEntityTypeConfiguration<Board>
|
public class BoardConfiguration : IEntityTypeConfiguration<Board>
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.EntityConfiguration
|
namespace NG_2023_Kanban.DataLayer.EntityConfiguration
|
||||||
{
|
{
|
||||||
public class CardConfiguration : IEntityTypeConfiguration<Card>
|
public class CardConfiguration : IEntityTypeConfiguration<Card>
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.EntityConfiguration
|
namespace NG_2023_Kanban.DataLayer.EntityConfiguration
|
||||||
{
|
{
|
||||||
public class ColumnConfiguration : IEntityTypeConfiguration<Column>
|
public class ColumnConfiguration : IEntityTypeConfiguration<Column>
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.EntityConfiguration
|
namespace NG_2023_Kanban.DataLayer.EntityConfiguration
|
||||||
{
|
{
|
||||||
public class CommentConfiguration : IEntityTypeConfiguration<Comment>
|
public class CommentConfiguration : IEntityTypeConfiguration<Comment>
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.EntityConfiguration
|
namespace NG_2023_Kanban.DataLayer.EntityConfiguration
|
||||||
{
|
{
|
||||||
public class UserConfiguration : IEntityTypeConfiguration<User>
|
public class UserConfiguration : IEntityTypeConfiguration<User>
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NG_2023_Kanban.Models;
|
namespace NG_2023_Kanban.DataLayer.Models;
|
||||||
|
|
||||||
public class ErrorViewModel
|
public class ErrorViewModel
|
||||||
{
|
{
|
|
@ -1,11 +1,11 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using NG_2023_Kanban.Entities;
|
using NG_2023_Kanban.DataLayer.Entities;
|
||||||
using NG_2023_Kanban.Extensions;
|
using NG_2023_Kanban.Extensions;
|
||||||
using NG_2023_Kanban.Models;
|
using NG_2023_Kanban.DataLayer.Models;
|
||||||
using NG_2023_Kanban.Service;
|
using NG_2023_Kanban.BusinessLayer.Service;
|
||||||
|
|
||||||
namespace NG_2023_Kanban.Controllers;
|
namespace NG_2023_Kanban.PresentationLayer.Controllers;
|
||||||
|
|
||||||
public class HomeController : Controller
|
public class HomeController : Controller
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
using NG_2023_Kanban.DbStartup;
|
using NG_2023_Kanban.DataLayer.DbStartup;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@using NG_2023_Kanban.Entities
|
@using NG_2023_Kanban.DataLayer.Entities
|
||||||
@{
|
@{
|
||||||
var user = ViewData["Account"] as User;
|
var user = ViewData["Account"] as User;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
@using NG_2023_Kanban
|
@using NG_2023_Kanban
|
||||||
@using NG_2023_Kanban.Models
|
@using NG_2023_Kanban.DataLayer.Models
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
|
|
Reference in a new issue