From 938b7a2dad9a15b460a8761e2887a68ac435fe83 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 29 Jan 2018 18:23:57 +0800 Subject: [PATCH] - --- .../ExpressionsToSql/Common/SugarParameter.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs index 6a11e5805..78e64abfe 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs @@ -25,6 +25,21 @@ namespace SqlSugar this.ParameterName = name; SettingDataType(type); } + public SugarParameter(string name, object value, Type type,ParameterDirection direction) + { + this.Value = value; + this.ParameterName = name; + this.Direction = direction; + SettingDataType(type); + } + public SugarParameter(string name, object value, Type type, ParameterDirection direction,int size) + { + this.Value = value; + this.ParameterName = name; + this.Direction = direction; + this.Size = size; + SettingDataType(type); + } private void SettingDataType(Type type) {