Changeset 057037b for backend/Entities
- Timestamp:
- 04/11/22 15:29:19 (3 years ago)
- Branches:
- master
- Children:
- 7a983b0
- Parents:
- b66b3ac
- Location:
- backend/Entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
backend/Entities/Reservation.cs
rb66b3ac r057037b 1 namespace backend.Entities 1 using Newtonsoft.Json; 2 3 namespace backend.Entities 2 4 { 3 5 public class Reservation … … 5 7 public int Id { get; set; } 6 8 public DateTime StartDate { get; set; } 9 public int Persons { get; set; } 7 10 public virtual Restaurant Restaurant { get; set; } 8 11 public ReservationPlace ReservationPlace { get; set; } -
backend/Entities/Restaurant.cs
rb66b3ac r057037b 1 namespace backend.Entities 1 using Newtonsoft.Json; 2 3 namespace backend.Entities 2 4 { 3 5 public class Restaurant -
backend/Entities/User.cs
rb66b3ac r057037b 1 using Newtonsoft.Json; 2 1 3 namespace backend.Entities; 2 4 … … 4 6 { 5 7 public int Id { get; set; } 6 public string Username{ get; set; }8 public string Email { get; set; } 7 9 public string Password { get; set; } 10 [JsonIgnore] 8 11 public virtual Restaurant Restaurant { get; set; } 9 12 }
Note:
See TracChangeset
for help on using the changeset viewer.