Explorar o código

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

Lucky %!s(int64=7) %!d(string=hai) anos
pai
achega
28e575174c
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  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)
 		{
 		{
 		}
 		}
 	}
 	}