From ddd993ed45802e4368f5af1e2a6d05122d0dbf68 Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Tue, 31 Aug 2021 11:52:47 +0800 Subject: [PATCH] Add Check --- Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs index 585fd69df..10de59872 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SqlSugarClient.cs @@ -351,6 +351,7 @@ namespace SqlSugar } public IStorageable Storageable(T data) where T : class, new() { + Check.Exception(typeof(T).FullName.Contains("System.Collections.Generic.List`"), " need where T: class, new() "); return this.Context.Storageable(new List { data}); } public ISaveable Saveable(List saveObjects) where T : class, new()