BindingModels
This commit is contained in:
parent
f3c2c5b00b
commit
a34cdb66a2
@ -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
|
||||||
|
16
Forum/ForumContracts/BindingModels/CategoryBindingModel.cs
Normal file
16
Forum/ForumContracts/BindingModels/CategoryBindingModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
18
Forum/ForumContracts/BindingModels/MessageBindingModel.cs
Normal file
18
Forum/ForumContracts/BindingModels/MessageBindingModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
16
Forum/ForumContracts/BindingModels/RoleBindingModel.cs
Normal file
16
Forum/ForumContracts/BindingModels/RoleBindingModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
16
Forum/ForumContracts/BindingModels/TopicBindingModel.cs
Normal file
16
Forum/ForumContracts/BindingModels/TopicBindingModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
22
Forum/ForumContracts/BindingModels/UserBindingModel.cs
Normal file
22
Forum/ForumContracts/BindingModels/UserBindingModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
@ -6,4 +6,8 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\ForumDataModels\ForumDataModels.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user