datamodels
This commit is contained in:
parent
41beb11ac9
commit
1d1630ad51
@ -6,8 +6,16 @@ MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompany", "TravelCompany\TravelCompany.csproj", "{6D35D844-99B5-4A3E-BF6F-1407C1B0E43C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyBusinessLogic", "TravelCompanyBusinessLogic\TravelCompanyBusinessLogic.csproj", "{92800B04-E03C-4B84-8BCE-D92E69DC164D}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{CED948EE-1556-47DB-A0B6-FFB3C93394F1} = {CED948EE-1556-47DB-A0B6-FFB3C93394F1}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyContracts", "TravelCompanyContracts\TravelCompanyContracts.csproj", "{CED948EE-1556-47DB-A0B6-FFB3C93394F1}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05} = {091C17F5-84EC-4DFC-8BA5-200E41ED9F05}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyDataModels", "TravelCompanyDataModels\TravelCompanyDataModels.csproj", "{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -27,6 +35,10 @@ Global
|
||||
{CED948EE-1556-47DB-A0B6-FFB3C93394F1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CED948EE-1556-47DB-A0B6-FFB3C93394F1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CED948EE-1556-47DB-A0B6-FFB3C93394F1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -0,0 +1,11 @@
|
||||
using TravelCompanyDataModels.Models;
|
||||
|
||||
|
||||
namespace TravelCompanyContracts.BindingModels.Contractor
|
||||
{
|
||||
public class ExcursionBindingModel
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyDataModels.Models.Guarantor;
|
||||
|
||||
namespace TravelCompanyContracts.BindingModels.Guarantor
|
||||
{
|
||||
public class GuideBindingModel : IGuideModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string GuideFIO { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public string GuidePrice { get; set; }
|
||||
}
|
||||
}
|
@ -7,11 +7,14 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BindingModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
<Folder Include="SearchModels\" />
|
||||
<Folder Include="StoragesModels\" />
|
||||
<Folder Include="ViewModels\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\TravelCompanyDataModels\TravelCompanyDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
13
TravelCompany/TravelCompanyDataModels/IId.cs
Normal file
13
TravelCompany/TravelCompanyDataModels/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 TravelCompanyDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Contractor
|
||||
{
|
||||
public interface IContractorModel : IId
|
||||
{
|
||||
string Surname { get; }
|
||||
string Name { get; }
|
||||
string Patronymic { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
string Email { get; }
|
||||
string MobilePhone { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Contractor
|
||||
{
|
||||
public interface IExcursionGroupModel : IId
|
||||
{
|
||||
string ExcursionGroupName { get; }
|
||||
|
||||
int PeopleAmount { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Contractor
|
||||
{
|
||||
public interface IExcursionModel : IId
|
||||
{
|
||||
string ExcursionName { get; }
|
||||
|
||||
int ExcursionPrice { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Contractor
|
||||
{
|
||||
public interface ITourModel : IId
|
||||
{
|
||||
string TourName { get; }
|
||||
|
||||
DateTime TourDate { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Guarantor
|
||||
{
|
||||
public interface IGuarantorModel : IId
|
||||
{
|
||||
string Surname { get; }
|
||||
string Name { get; }
|
||||
string Patronymic { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
string Email { get; }
|
||||
string MobilePhone { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
// using TravelCompanyDataModels.Enums;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Guarantor
|
||||
{
|
||||
public interface IGuideModel : IId
|
||||
{
|
||||
string GuideFIO { get; }
|
||||
|
||||
string PhoneNumber { get; }
|
||||
|
||||
string GuidePrice { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Guarantor
|
||||
{
|
||||
public interface IPlaceModel : IId
|
||||
{
|
||||
string NamePlace { get; }
|
||||
|
||||
string DescriptionPlace { get; }
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models.Guarantor
|
||||
{
|
||||
public interface ITripModel : IId
|
||||
{
|
||||
string TripName { get; }
|
||||
|
||||
DateTime TripDate { get; }
|
||||
|
||||
}
|
||||
}
|
19
TravelCompany/TravelCompanyDataModels/Models/IUserModel.cs
Normal file
19
TravelCompany/TravelCompanyDataModels/Models/IUserModel.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models
|
||||
{
|
||||
public interface IUserModel : IId
|
||||
{
|
||||
string Surname { get; }
|
||||
string Name { get; }
|
||||
string Patronymic { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
string Email { get; }
|
||||
string MobilePhone { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Enums\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user