Import FuelLog

This commit is contained in:
2015-09-09 22:45:27 -04:00
parent f3a7249793
commit 56dd091178
21 changed files with 500 additions and 15 deletions
+38
View File
@@ -0,0 +1,38 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace MileageTraker.Web.Models
{
public class FuelLog
{
[Required]
[DataType(DataType.Date)]
public DateTime Date { get; set; }
[Required]
[StringLength(128)]
public string DriverFullName { get; set; }
[Required]
[Display(Name = "Tag#")]
public string TagNumber { get; set; }
[Required]
[Range(1, 500000, ErrorMessage = "Between 1 and 500k")]
public int Odometer { get; set; }
[StringLength(64)]
public string CityName { get; set; }
public double MPG { get; set; }
[Required]
public double GasPurchased { get; set; }
[Required]
public decimal TotalPrice { get; set; }
// Matched log
public virtual Log Log { get; set; }
}
}