Procházet zdrojové kódy

修复ComponentFactory.CreateWithId<RechargeRecord>(id)抛找不到无参构造函数的问题

Lucky před 7 roky
rodič
revize
28e575174c
1 změnil soubory, kde provedl 10 přidání a 2 odebrání
  1. 10 2
      Server/Model/Entity/Http.cs

+ 10 - 2
Server/Model/Entity/Http.cs

@@ -12,7 +12,11 @@
 		// 充值时间
 		// 充值时间
 		public long Time { get; set; }
 		public long Time { get; set; }
 
 
-		public RechargeRecord(long id) : base(id)
+        public RechargeRecord() : base()
+        {
+        }
+
+        public RechargeRecord(long id) : base(id)
 		{
 		{
 		}
 		}
 	}
 	}
@@ -24,7 +28,11 @@
 
 
 		public long UpdateTime { get; set; }
 		public long UpdateTime { get; set; }
 
 
-		public Recharge(long id) : base(id)
+        public Recharge() : base()
+        {
+        }
+
+        public Recharge(long id) : base(id)
 		{
 		{
 		}
 		}
 	}
 	}