Explorar el Código

DBSaveTask没有无参构造函数,Activator.CreateInstance时报错

Lucky hace 8 años
padre
commit
219bc0f5f8
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      Server/Model/Entity/DBSaveTask.cs

+ 4 - 0
Server/Model/Entity/DBSaveTask.cs

@@ -25,6 +25,10 @@ namespace Model
 		public string CollectionName { get; set; }
 
 		public TaskCompletionSource<bool> Tcs;
+		
+		public DBSaveTask()
+		{
+		}
 
 		public DBSaveTask(long id): base(id)
 		{