We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6777c5 commit 42f1b9aCopy full SHA for 42f1b9a
Models/Car.cs
@@ -0,0 +1,18 @@
1
+namespace DBAccess.Models
2
+{
3
+ public class Car
4
+ {
5
+ public enum Condition
6
7
+ NEW, USED, DAMAGED, REBUILT
8
+ }
9
+ public int UUID { get; set; }
10
+ public string Make { get; set; }
11
+ public string Model { get; set; }
12
+ public decimal Price { get; set; }
13
+ public DateOnly Year { get; set; }
14
+ public Condition condition { get; set; }
15
+ public int Odo { get; set; }
16
+ public Person Owner { get; set; }
17
18
+}
Models/Person.cs
@@ -0,0 +1,12 @@
+ public class Person
+ public int ID { get; set; }
+ public string FirstName { get; set; }
+ public string LastName { get; set; }
+
+ public ICollection<Car>? Cars { get; set; }
0 commit comments