Add DriverModel; Add Car entity;
This commit is contained in:
parent
027344fe30
commit
35a1b5b0f4
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
|
||||
namespace TIAM.Entities.Drivers
|
||||
{
|
||||
public enum CarMotorType : byte
|
||||
{
|
||||
Gas = 5,
|
||||
Diesel = 10,
|
||||
Electric = 15,
|
||||
}
|
||||
|
||||
public class Car : IEntityGuid, ITimeStampModified
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string LicencePlate { get; set; }
|
||||
public string Color { get; set; }
|
||||
public string Manufacture{ get; set; }
|
||||
public string Model { get; set; }
|
||||
|
||||
public int YearOfMake { get; set; }
|
||||
public int SeetNumber { get; set; }
|
||||
|
||||
public CarMotorType CarMotorType { get; set; }
|
||||
|
||||
public DateTime Modified { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TIAM.Entities.Drivers;
|
||||
|
||||
namespace TIAM.Models.Drivers
|
||||
{
|
||||
public class DriverModel
|
||||
{
|
||||
public List<Car> Cars { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue