mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2026-04-07 15:23:56 +00:00
Initial commit
This commit is contained in:
parent
2190113c56
commit
3088165398
1765 changed files with 192085 additions and 0 deletions
11
Chapter05/MyBlog/Data.Models/Models/BlogPost.cs
Normal file
11
Chapter05/MyBlog/Data.Models/Models/BlogPost.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Data.Models;
|
||||
|
||||
public class BlogPost
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Text { get; set; } = string.Empty;
|
||||
public DateTime PublishDate { get; set; }
|
||||
public Category? Category { get; set; }
|
||||
public List<Tag> Tags { get; set; } = new();
|
||||
}
|
||||
6
Chapter05/MyBlog/Data.Models/Models/Category.cs
Normal file
6
Chapter05/MyBlog/Data.Models/Models/Category.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace Data.Models;
|
||||
public class Category
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
6
Chapter05/MyBlog/Data.Models/Models/Tag.cs
Normal file
6
Chapter05/MyBlog/Data.Models/Models/Tag.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace Data.Models;
|
||||
public class Tag
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue