diff --git a/CarCenter/CarCenter.csproj b/CarCenter/CarCenter.csproj new file mode 100644 index 0000000..cfadb03 --- /dev/null +++ b/CarCenter/CarCenter.csproj @@ -0,0 +1,9 @@ + + + + net7.0 + enable + enable + + + diff --git a/CarCenter/CarCenter.sln b/CarCenter/CarCenter.sln new file mode 100644 index 0000000..21c39a3 --- /dev/null +++ b/CarCenter/CarCenter.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34525.116 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CarCenter", "CarCenter.csproj", "{67226823-B581-4EF2-85D9-EF237B3DA3AF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CarCenterDataModels", "..\CarCenterDataModels\CarCenterDataModels.csproj", "{5C83F791-9BDF-4EE7-A2F9-E163E9A26613}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {67226823-B581-4EF2-85D9-EF237B3DA3AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {67226823-B581-4EF2-85D9-EF237B3DA3AF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {67226823-B581-4EF2-85D9-EF237B3DA3AF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {67226823-B581-4EF2-85D9-EF237B3DA3AF}.Release|Any CPU.Build.0 = Release|Any CPU + {5C83F791-9BDF-4EE7-A2F9-E163E9A26613}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5C83F791-9BDF-4EE7-A2F9-E163E9A26613}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5C83F791-9BDF-4EE7-A2F9-E163E9A26613}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5C83F791-9BDF-4EE7-A2F9-E163E9A26613}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {52326E6A-84CC-4561-AB92-C6D9971A606D} + EndGlobalSection +EndGlobal diff --git a/CarCenter/Class1.cs b/CarCenter/Class1.cs new file mode 100644 index 0000000..fb1d0c6 --- /dev/null +++ b/CarCenter/Class1.cs @@ -0,0 +1,7 @@ +namespace CarCenter +{ + public class Class1 + { + + } +} diff --git a/CarCenterDataModels/CarCenterDataModels.csproj b/CarCenterDataModels/CarCenterDataModels.csproj new file mode 100644 index 0000000..cfadb03 --- /dev/null +++ b/CarCenterDataModels/CarCenterDataModels.csproj @@ -0,0 +1,9 @@ + + + + net7.0 + enable + enable + + + diff --git a/CarCenterDataModels/IClientModel.cs b/CarCenterDataModels/IClientModel.cs new file mode 100644 index 0000000..dee2df2 --- /dev/null +++ b/CarCenterDataModels/IClientModel.cs @@ -0,0 +1,11 @@ +using CarCenterDataModels.HelperInterfaces; + +namespace CarCenterDataModels +{ + public interface IClientModel : IId + { + int DirectorId { get; } + string Name { get; } + int Course { get; } + } +} diff --git a/CarCenterDataModels/IDirectorModel.cs b/CarCenterDataModels/IDirectorModel.cs new file mode 100644 index 0000000..1302e80 --- /dev/null +++ b/CarCenterDataModels/IDirectorModel.cs @@ -0,0 +1,8 @@ +using CarCenterDataModels.HelperInterfaces; + +namespace CarCenterDataModels +{ + public interface IDirectorModel : IUser + { + } +} diff --git a/CarCenterDataModels/IRequirementModel.cs b/CarCenterDataModels/IRequirementModel.cs new file mode 100644 index 0000000..2c15ab9 --- /dev/null +++ b/CarCenterDataModels/IRequirementModel.cs @@ -0,0 +1,14 @@ +using CarCenterDataModels.HelperInterfaces; +using CarCenterDataModels.ProxyModels; + +namespace CarCenterDataModels +{ + public interface IRequirementModel : IId + { + int DirectorId { get; } + string NameOfRequirement { get; } + double Price { get; } + + Dictionary CarsModels { get; } + } +} diff --git a/CarCenterDataModels/ProxyModels/RequirementByCarModel.cs b/CarCenterDataModels/ProxyModels/RequirementByCarModel.cs new file mode 100644 index 0000000..890e4f3 --- /dev/null +++ b/CarCenterDataModels/ProxyModels/RequirementByCarModel.cs @@ -0,0 +1,14 @@ +using CarCenterDataModels.HelperInterfaces; + +namespace CarCenterDataModels.ProxyModels +{ + public class RequirementByCarModel : IId + { + public virtual int Id { get; set; } + + public virtual int RequirementId { get; set; } + public virtual int CarId { get; set; } + + public virtual int Count { get; set; } + } +}