public object Offer { get; internal set; }
public class ApplicationUser : IdentityUser{ public string Role { get; set; }}
ICollection<Orders> Order {get;set;}
Offer
public class Offers{ public int Id { get; set; } public required string Name { get; set; } public required int Price { get; set; } public required string Currency { get; set; } public required string Amount { get; set; } public required string UnitsAvaiable { get; set; } public required string Origin { get; set; } public required string OfferType { get; set; } = "Online"; public required ICollection<CropCategories> CropCategory { get; set; } // Return relations public ApplicationUser User { get; set; } public ICollection<Crops> Crop { get; set; } public ICollection<Orders> Order { get; set; }}
public class Orders{ public int Id { get; set; } public required Offers Offer { get; set; } public required ApplicationUser User { get; set; } public string Amount { get; set; } public required string Price { get; set; } public string PaymentType { get; set; } public bool Status { get; set; }}
required
record
readonly