소스 검색

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

# Conflicts:
#	CardCollector.sln.DotSettings.user
Tigran 4 년 전
부모
커밋
64dced1319
2개의 변경된 파일35개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      CardCollector/DataBase/Entity/AuctionEntity.cs
  2. 12 0
      CardCollector/DataBase/EntityDao/AuctionDao.cs

+ 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;
+        
+    }
+}