PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenDatabaseImplement/Models/Order.cs

31 lines
915 B
C#
Raw Normal View History

2023-04-07 10:55:40 +04:00
using CanteenDataModels.Enums;
using CanteenDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CanteenDatabaseImplement.Models
{
public class Order : IOrderModel
{
public int ClientId { get; private set; }
public double Sum { get; private set; }
public OrderStatus Status { get; private set; } = OrderStatus.Неизвестен;
public DateTime DateCreate { get; private set; } = DateTime.Now;
public DateTime? DateImplement { get; private set; }
public int Id { get; private set; }
[ForeignKey("OrderId")]
public virtual List<LunchOrder> LunchOrders { get; set; } = new();
[ForeignKey("OrderId")]
public virtual List<CookOrder> CookOrders { get; set; } = new();
}
}