2024-11-12 23:13:20 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2024-12-20 11:46:58 +04:00
|
|
|
|
using System.ComponentModel;
|
2024-11-12 23:13:20 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectLibrary.Entites
|
|
|
|
|
{
|
2024-11-19 14:49:58 +04:00
|
|
|
|
public class Book_Orders
|
2024-11-12 23:13:20 +04:00
|
|
|
|
{
|
2024-12-20 11:46:58 +04:00
|
|
|
|
[Browsable(false)]
|
2024-11-12 23:13:20 +04:00
|
|
|
|
public int BookID { get; private set; }
|
2024-12-20 11:46:58 +04:00
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
2024-11-12 23:13:20 +04:00
|
|
|
|
public int OrderID { get; private set; }
|
2024-12-20 11:46:58 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Количество")]
|
2024-12-20 01:07:20 +04:00
|
|
|
|
public int Count { get; private set; }
|
2024-11-12 23:13:20 +04:00
|
|
|
|
|
2024-12-20 15:49:09 +04:00
|
|
|
|
public string BookName { get; set; }
|
|
|
|
|
|
2024-12-20 01:07:20 +04:00
|
|
|
|
public static Book_Orders CreateEntity(int orderID,int bookID, int count )
|
2024-11-12 23:13:20 +04:00
|
|
|
|
{
|
2024-11-19 14:49:58 +04:00
|
|
|
|
return new Book_Orders
|
2024-11-12 23:13:20 +04:00
|
|
|
|
{
|
|
|
|
|
BookID = bookID,
|
2024-12-20 01:07:20 +04:00
|
|
|
|
OrderID = orderID,
|
|
|
|
|
Count = count
|
2024-11-12 23:13:20 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|