Procházet zdrojové kódy

Merge remote-tracking branch 'origin/Develop' into Develop

# Conflicts:
#	CardCollector.sln.DotSettings.user
Tigran před 4 roky
rodič
revize
64dced1319

+ 23 - 0
CardCollector/DataBase/Entity/AuctionEntity.cs

@@ -0,0 +1,23 @@
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace CardCollector.DataBase.Entity
+{
+    [Table("auction")]
+    public class AuctionEntity
+    {
+        /* id стикера */
+        [Key]
+        [Column("id"), MaxLength(32)] public int Id { get; set; }
+        
+        /* цена */
+        [Column("price"), MaxLength(32)] public int Price { get; set; }
+        
+        /* валюта */
+        [Column("currency"), MaxLength(32)] public int Сurrency { get; set; }
+        
+        /* количество */
+        [Column("quantity"), MaxLength(32)] public int Quantity { get; set; }
+        
+    }
+}

+ 12 - 0
CardCollector/DataBase/EntityDao/AuctionDao.cs

@@ -0,0 +1,12 @@
+using CardCollector.DataBase.Entity;
+using Microsoft.EntityFrameworkCore;
+
+namespace CardCollector.DataBase.EntityDao
+{
+    public static class AuctionDao
+    {
+        /* Таблица stickers в представлении Entity Framework */
+        private static readonly DbSet<StickerEntity> Table = CardCollectorDatabase.Instance.Stickers;
+        
+    }
+}