소스 검색

add auctionEntity and auctionDao

DarkGolly 4 년 전
부모
커밋
10f4e9013f
3개의 변경된 파일36개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      CardCollector.sln.DotSettings.user
  2. 23 0
      CardCollector/DataBase/Entity/AuctionEntity.cs
  3. 12 0
      CardCollector/DataBase/EntityDao/AuctionDao.cs

+ 1 - 1
CardCollector.sln.DotSettings.user

@@ -2,7 +2,7 @@
 	<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=CardCollector_002FResources_002FCallbackQueryCommands/@EntryIndexedValue">False</s:Boolean>
 	<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=CardCollector_002FResources_002FInlineQueryCommands/@EntryIndexedValue">True</s:Boolean>
 	
-	<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=CardCollector_002FResources_002FMessageCommands/@EntryIndexedValue">False</s:Boolean>
+	<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=CardCollector_002FResources_002FMessageCommands/@EntryIndexedValue">True</s:Boolean>
 	<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=CardCollector_002FResources_002FMessages/@EntryIndexedValue">False</s:Boolean>
 	<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=CardCollector_002FResources_002FSortingTypes/@EntryIndexedValue">False</s:Boolean>
 	

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