Создание слоя с моделями.
This commit is contained in:
parent
25e99b4d7b
commit
9284ac6bea
13
TransportCompany/TransportCompanyDataModels/IId.cs
Normal file
13
TransportCompany/TransportCompanyDataModels/IId.cs
Normal 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; }
|
||||
}
|
||||
}
|
14
TransportCompany/TransportCompanyDataModels/Models/ICargo.cs
Normal file
14
TransportCompany/TransportCompanyDataModels/Models/ICargo.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user