Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace VTClassLibrary
- {
- public class Product
- {
- [Key]
- [StringLength(4)]
- public string ProductCode { get; set; }
- public string ProductName { get; set; }
- public int ProductSellingPrice { get; set; }
- public int ProductPurchasePrice { get; set; }
- public virtual ICollection<ProductVendingTerminal> ProductVendingTerminals { get; set; }
- }
- }
- namespace VTClassLibrary
- {
- public class VendingTerminal
- {
- [Key]
- public int VTId { get; set; }
- public string VTLocation { get; set; }
- public int VTCredit { get; set; }
- public virtual Cash Cash { get; set; }
- public virtual ICollection<ProductVendingTerminal> ProductVendingTerminals { get; set; }
- }
- }
- namespace VTClassLibrary
- {
- public class ProductVendingTerminal
- {
- [Key, Column(Order = 0)]
- public string ProductCode { get; set; }
- [Key, Column(Order = 1)]
- public int VTId { get; set; }
- public virtual Product Product { get; set; }
- public virtual VendingTerminal VendingTerminal { get; set; }
- public int Amount { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement