sockscape/server/DAL/Item.cs

28 lines
706 B
C#
Raw Normal View History

2017-08-24 21:00:52 +00:00
using System;
using System.Collections.Generic;
2017-08-25 21:03:33 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2017-08-24 21:00:52 +00:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SockScape.DAL {
class Item {
2017-08-25 21:03:33 +00:00
public long Id { get; set; }
2017-08-24 21:00:52 +00:00
2017-08-25 21:03:33 +00:00
[ForeignKey("Master"), Required]
public int MasterId { get; set; }
public virtual ItemMaster Master { get; set; }
2017-08-24 21:00:52 +00:00
2017-08-25 21:03:33 +00:00
[ForeignKey("User"), Required]
public long UserId { get; set; }
public virtual User User { get; set; }
[Required]
public long Quantity { get; set; }
[Required]
public long Sequence { get; set; }
2017-08-24 21:00:52 +00:00
}
}