File tree Expand file tree Collapse file tree 5 files changed +23
-25
lines changed
Expand file tree Collapse file tree 5 files changed +23
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11using NorthwindCRUD . Models . Dtos ;
2- using static NorthwindCRUD . Helpers . Enums ;
2+ using NorthwindCRUD . Models . Enums ;
33
44namespace NorthwindCRUD . Models . Contracts
55{
Original file line number Diff line number Diff line change 11using System . ComponentModel . DataAnnotations ;
22using System . ComponentModel . DataAnnotations . Schema ;
3+ using NorthwindCRUD . Models . Enums ;
34
45namespace NorthwindCRUD . Models . DbModels
56{
@@ -29,7 +30,7 @@ public OrderDb()
2930
3031 public string RequiredDate { get ; set ; }
3132
32- public int ShipVia { get ; set ; }
33+ public Shipping ? ShipVia { get ; set ; }
3334
3435 public double Freight { get ; set ; }
3536
Original file line number Diff line number Diff line change 11using System . ComponentModel . DataAnnotations ;
22using NorthwindCRUD . Models . Contracts ;
3- using static NorthwindCRUD . Helpers . Enums ;
3+ using NorthwindCRUD . Models . Enums ;
44
55namespace NorthwindCRUD . Models . Dtos
66{
Original file line number Diff line number Diff line change 1+ using System . Runtime . Serialization ;
2+
3+ namespace NorthwindCRUD . Models . Enums
4+ {
5+ public enum Shipping
6+ {
7+ [ EnumMember ( Value = "SeaFreight" ) ]
8+ SeaFreight ,
9+
10+ [ EnumMember ( Value = "GroundTransport" ) ]
11+ GroundTransport ,
12+
13+ [ EnumMember ( Value = "AirCargo" ) ]
14+ AirCargo ,
15+
16+ [ EnumMember ( Value = "Mail" ) ]
17+ Mail ,
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments