Init commit
This commit is contained in:
parent
9ab798fd0f
commit
1f50fedb80
87 changed files with 75678 additions and 0 deletions
46
Models/LawnCareEvent.cs
Normal file
46
Models/LawnCareEvent.cs
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace turf_tasker.Models;
|
||||
|
||||
public enum LawnCareEventType
|
||||
{
|
||||
Mowing,
|
||||
Watering,
|
||||
Fertilizing,
|
||||
Aeration,
|
||||
WeedControl,
|
||||
Other
|
||||
}
|
||||
|
||||
public enum MowingPattern
|
||||
{
|
||||
Vertical,
|
||||
Horizontal,
|
||||
Diagonal,
|
||||
[Display(Name = "Opposite Diagonal")]
|
||||
OppositeDiagonal
|
||||
}
|
||||
|
||||
public class LawnCareEvent
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Activity Type")]
|
||||
public LawnCareEventType EventType { get; set; }
|
||||
|
||||
// --- THIS IS THE LINE TO CHECK ---
|
||||
// Make sure this property exists and is spelled correctly.
|
||||
[Required]
|
||||
[DataType(DataType.Date)]
|
||||
[Display(Name = "Date")]
|
||||
public DateTime EventDate { get; set; }
|
||||
// ---------------------------------
|
||||
|
||||
[Display(Name = "Mowing Pattern")]
|
||||
public MowingPattern? MowingPattern { get; set; }
|
||||
|
||||
[StringLength(500)]
|
||||
public string? Notes { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue