BindingModels

This commit is contained in:
ArtemEmelyanov 2023-04-28 19:36:06 +04:00
parent f3c2c5b00b
commit a34cdb66a2
7 changed files with 98 additions and 0 deletions

View File

@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Forum", "Forum\Forum.csproj
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ForumDataModels", "ForumDataModels\ForumDataModels.csproj", "{24B317C8-C032-4D6E-8568-B8E849356296}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ForumDataModels", "ForumDataModels\ForumDataModels.csproj", "{24B317C8-C032-4D6E-8568-B8E849356296}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ForumContracts", "ForumContracts\ForumContracts.csproj", "{5C97629C-A864-4DF7-9371-04F7E6CE0E71}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -21,6 +23,10 @@ Global
{24B317C8-C032-4D6E-8568-B8E849356296}.Debug|Any CPU.Build.0 = Debug|Any CPU {24B317C8-C032-4D6E-8568-B8E849356296}.Debug|Any CPU.Build.0 = Debug|Any CPU
{24B317C8-C032-4D6E-8568-B8E849356296}.Release|Any CPU.ActiveCfg = Release|Any CPU {24B317C8-C032-4D6E-8568-B8E849356296}.Release|Any CPU.ActiveCfg = Release|Any CPU
{24B317C8-C032-4D6E-8568-B8E849356296}.Release|Any CPU.Build.0 = Release|Any CPU {24B317C8-C032-4D6E-8568-B8E849356296}.Release|Any CPU.Build.0 = Release|Any CPU
{5C97629C-A864-4DF7-9371-04F7E6CE0E71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5C97629C-A864-4DF7-9371-04F7E6CE0E71}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5C97629C-A864-4DF7-9371-04F7E6CE0E71}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5C97629C-A864-4DF7-9371-04F7E6CE0E71}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -0,0 +1,16 @@
using ForumDataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.BindingModels
{
public class CategoryBindingModel : ICategoryModel
{
public string Name { get; set; } = string.Empty;
public int Id { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using ForumDataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.BindingModels
{
public class MessageBindingModel : IMessageModel
{
public string Text { get; set; } = string.Empty;
public DateTime Date { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using ForumDataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.BindingModels
{
public class RoleBindingModel : IRoleModel
{
public string Name { get; set; } = string.Empty;
public int Id { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using ForumDataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.BindingModels
{
public class TopicBindingModel : ITopicModel
{
public string Name { get; set; } = string.Empty;
public int Id { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using ForumDataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.BindingModels
{
public class UserBindingModel : IUserModel
{
public string Username { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public DateTime RegistrationDate { get; set; }
public int Id { get; set; }
}
}

View File

@ -6,4 +6,8 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ForumDataModels\ForumDataModels.csproj" />
</ItemGroup>
</Project> </Project>