Use base model for primary key.

This commit is contained in:
2019-05-19 17:51:28 +01:00
parent 916b0ec1c7
commit 843496bb1c
27 changed files with 40 additions and 58 deletions

View File

@@ -37,7 +37,7 @@ using System.Linq;
namespace Cicm.Database.Models
{
public class Company
public class Company : BaseModel<int>
{
public Company()
{
@@ -50,7 +50,6 @@ namespace Cicm.Database.Models
SoundSynths = new HashSet<SoundSynth>();
}
public int Id { get; set; }
public string Name { get; set; }
[DisplayFormat(DataFormatString = "{0:d}")]
public DateTime? Founded { get; set; }