31 lines
915 B
C#
31 lines
915 B
C#
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();
|
||
}
|
||
}
|