Added some EFCore stuff to webapi

This commit is contained in:
2021-10-13 11:04:53 -04:00
parent 8fb383d673
commit cb616ab771
6 changed files with 55 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace WebAPI.Data.Models
{
public class BaseEntity
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Key]
public int Id { get; set; }
}
}