diff --git a/Subd/Subd.sln b/Subd/Subd.sln index 26dfffa..51d22df 100644 --- a/Subd/Subd.sln +++ b/Subd/Subd.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.3.32825.248 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Subd", "Subd\Subd.csproj", "{4F51BFA8-D899-4A30-96AA-0B6BFE630E9C}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataModels", "Subd\DataModels.csproj", "{4F51BFA8-D899-4A30-96AA-0B6BFE630E9C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/Subd/Subd/Class1.cs b/Subd/Subd/Class1.cs deleted file mode 100644 index e52c8fa..0000000 --- a/Subd/Subd/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Subd -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/Subd/Subd/Subd.csproj b/Subd/Subd/DataModels.csproj similarity index 100% rename from Subd/Subd/Subd.csproj rename to Subd/Subd/DataModels.csproj diff --git a/Subd/Subd/IId.cs b/Subd/Subd/IId.cs new file mode 100644 index 0000000..dd022c4 --- /dev/null +++ b/Subd/Subd/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/Subd/Subd/Models/ICar.cs b/Subd/Subd/Models/ICar.cs new file mode 100644 index 0000000..f106647 --- /dev/null +++ b/Subd/Subd/Models/ICar.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface ICar : IId + { + string Model { get; } + int Tonnage { get; } + int StatusId { get; } + string StatusTitle { get; } + + } +} diff --git a/Subd/Subd/Models/ICompany.cs b/Subd/Subd/Models/ICompany.cs new file mode 100644 index 0000000..75d1425 --- /dev/null +++ b/Subd/Subd/Models/ICompany.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface ICompany : IId + { + string Title { get; } + int StatusId { get; } + string StatusTitle { get; } + } +} diff --git a/Subd/Subd/Models/IHuman.cs b/Subd/Subd/Models/IHuman.cs new file mode 100644 index 0000000..e80201e --- /dev/null +++ b/Subd/Subd/Models/IHuman.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface IHuman : IId + { + string Name { get; } + string Phone { get; } + int StatusId { get; } + string StatusTitle { get; } + } +} diff --git a/Subd/Subd/Models/IPlace.cs b/Subd/Subd/Models/IPlace.cs new file mode 100644 index 0000000..85568e2 --- /dev/null +++ b/Subd/Subd/Models/IPlace.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface IPlace : IId + { + string Title { get; } + + } +} diff --git a/Subd/Subd/Models/IRoute.cs b/Subd/Subd/Models/IRoute.cs new file mode 100644 index 0000000..c8b92ad --- /dev/null +++ b/Subd/Subd/Models/IRoute.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface IRoute : IId + { + int PlaceStart { get; } + int PlaceEnd { get; } + int Length { get; } + string Title { get; } + } +} diff --git a/Subd/Subd/Models/IStatus.cs b/Subd/Subd/Models/IStatus.cs new file mode 100644 index 0000000..8c358d1 --- /dev/null +++ b/Subd/Subd/Models/IStatus.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface IStatus : IId + { + string Title {get; } + } +} diff --git a/Subd/Subd/Models/IVoyage.cs b/Subd/Subd/Models/IVoyage.cs new file mode 100644 index 0000000..bf6d6da --- /dev/null +++ b/Subd/Subd/Models/IVoyage.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DataModels.Models +{ + public interface IVoyage : IId + { + int CarId { get; } + string CarName { get; } + int HumanId { get; } + string HumanName { get; } + int CompanyId { get; } + string CompanyName { get; } + int RouteId { get; } + DateTime DateStart { get; } + DateTime DateEnd { get; } + } +}