Database Migration, Repositories, Automapper, Logger, StaticFiles
This commit is contained in:
2024-04-26 02:34:47 +05:30
parent 234912badb
commit 4c6f9a4ba8
70 changed files with 10151 additions and 32 deletions
+24
View File
@@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class Blog : BaseEntity
{
[Required]
[MaxLength(200)]
[Url]
[Key]
public string BlogUrl { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string Name { get; set; } = string.Empty;
[MaxLength(200)]
public string? Description { get; set; } = string.Empty;
public ICollection<Post> Posts { get; set; } = new List<Post>();
}
}