Added ability to automatically track last modified and created timestamps for entities via an interface. DBContext will automatically update for us.

This commit is contained in:
Joseph Milazzo 2021-01-02 10:59:52 -06:00
parent 55a44000fc
commit d632e53f18
11 changed files with 660 additions and 17 deletions

View file

@ -1,8 +1,10 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using API.Entities.Interfaces;
namespace API.Entities
{
public class Series
public class Series : IEntityDate
{
public int Id { get; set; }
/// <summary>
@ -22,6 +24,8 @@ namespace API.Entities
/// </summary>
public string Summary { get; set; }
public string CoverImage { get; set; }
public DateTime Created { get; set; }
public DateTime LastModified { get; set; }
public ICollection<Volume> Volumes { get; set; }
public Library Library { get; set; }