Добавил модели

This commit is contained in:
maxnes3 2023-03-26 17:56:26 +04:00
parent 0dd6ef6c4a
commit dfece37eb2
10 changed files with 136 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface ICaseModel : IId
{
string Name { get; }
string Applicant { get; }
string Defendant { get; }
string Annotation { get; }
DateTime Date { get; }
int SpecializationId { get; }
int UserId { get; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface IContractModel : IId
{
string Service { get; }
decimal Coast { get; }
DateTime Date { get; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface IDealModel : IId
{
string Subject { get; }
string Responsibilities { get; }
DateTime Date { get; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface IHearingModel : IId
{
string Information { get; }
DateTime Date { get; }
int CaseId { get; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface ILawyerModel : IId
{
string Name { get; }
string Surname { get; }
string Patronymic { get; }
int Experience { get; }
int SpecializationId { get; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface IRoleModel : IId
{
string Name { get; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface ISpecializationModel : IId
{
string Name { get; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingDataModels.Models
{
public interface IUserModel : IId
{
string Login { get; }
string Password { get; }
int RoleId { get; }
}
}