Changes:
Database Migration, Repositories, Automapper, Logger, StaticFiles
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PortBlog.API.Entities
|
||||
{
|
||||
public class ExperienceDetails : BaseEntity
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(500)]
|
||||
public string Details { get; set; } = string.Empty;
|
||||
|
||||
public int Order { get; set; } = 0;
|
||||
|
||||
public int ExperienceId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ExperienceId))]
|
||||
public Experience? Experience { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user