Создание слоя с моделями.

This commit is contained in:
Programmist73 2023-03-29 22:21:19 +04:00
parent 25e99b4d7b
commit 9284ac6bea
6 changed files with 102 additions and 0 deletions

View File

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

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TransportCompanyDataModels.Models
{
public interface ICargo : IId
{
//тип груза
string TypeCargo { get; }
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TransportCompanyDataModels.Models
{
public interface IClient : IId
{
string Name { get; }
string Surname { get; }
//отчество
string Patronymic { get; }
string TelephoneNumber { get; }
string Email { get; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TransportCompanyDataModels.Models
{
public interface ITransportModel : IId
{
//тип транспорта для перевозки
string Tranport { get; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TransportCompanyDataModels.Models
{
public interface ITransportationType : IId
{
//тип транспортировки
string TransportationType { get; }
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TransportCompanyDataModels.Models
{
public interface ITrucking : IId
{
int ClientId { get; }
int CargoId { get; }
double Price { get; }
DateTime DateStart { get; }
DateTime DateEnd { get; }
int TypeTransportationId { get; }
int TransportId { get; }
}
}