From 08033bfc52c7fd36cdd73bfe98d0522cc8595e33 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 27 Mar 2022 22:33:27 +0800 Subject: [PATCH] Update core --- .../SqlSugar/Entities/ConnectionConfig.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Entities/ConnectionConfig.cs b/Src/Asp.NetCore2/SqlSugar/Entities/ConnectionConfig.cs index 044e165cc..fdbad7915 100644 --- a/Src/Asp.NetCore2/SqlSugar/Entities/ConnectionConfig.cs +++ b/Src/Asp.NetCore2/SqlSugar/Entities/ConnectionConfig.cs @@ -70,14 +70,14 @@ namespace SqlSugar public class SqlMiddle { public bool? IsSqlMiddle { get; set; } - public Func GetScalar { get; set; } = (s,p) => throw new NotSupportedException("SqlMiddle.GetScalar"); - public Func ExecuteCommand { get; set; } = (s, p) => throw new NotSupportedException("SqlMiddle.ExecuteCommand"); - public Func GetDataReader { get; set; } = (s, p) => throw new NotSupportedException("SqlMiddle.GetDataReader"); - public Func GetDataSetAll { get; set; } = (s, p) => throw new NotSupportedException("SqlMiddle.GetDataSetAll"); - public Func> GetScalarAsync { get; set; } = (s, p) => throw new NotSupportedException("SqlMiddle.GetScalarAsync"); - public Func> ExecuteCommandAsync { get; set; } = (s, p) => throw new NotSupportedException("SqlMiddle.ExecuteCommandAsync"); - public Func> GetDataReaderAsync { get; set; } = (s, p) => throw new NotSupportedException("SqlMiddle.GetDataReaderAsync"); - public Func> GetDataSetAllAsync { get; set; } = (s, p) => throw new NotSupportedException("SqlMiddle.GetDataSetAllAsync"); + public Func GetScalar { get; set; } = (s,p) => throw new Exception("SqlMiddle.GetScalar is null"); + public Func ExecuteCommand { get; set; } = (s, p) => throw new Exception("SqlMiddle.ExecuteCommand is null"); + public Func GetDataReader { get; set; } = (s, p) => throw new Exception("SqlMiddle.GetDataReader is null"); + public Func GetDataSetAll { get; set; } = (s, p) => throw new Exception("SqlMiddle.GetDataSetAll is null"); + public Func> GetScalarAsync { get; set; } = (s, p) => throw new Exception("SqlMiddle.GetScalarAsync is null"); + public Func> ExecuteCommandAsync { get; set; } = (s, p) => throw new Exception("SqlMiddle.ExecuteCommandAsync is null"); + public Func> GetDataReaderAsync { get; set; } = (s, p) => throw new Exception("SqlMiddle.GetDataReaderAsync is null"); + public Func> GetDataSetAllAsync { get; set; } = (s, p) => throw new Exception("SqlMiddle.GetDataSetAllAsync is null"); } public class AopEvents