mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Remove Obsolete
This commit is contained in:
@@ -1500,54 +1500,5 @@ namespace SqlSugar
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Obsolete
|
|
||||||
[Obsolete]
|
|
||||||
public virtual dynamic SqlQueryDynamic(string sql, object parameters = null)
|
|
||||||
{
|
|
||||||
var dt = this.GetDataTable(sql, parameters);
|
|
||||||
return dt == null ? null : this.Context.Utilities.DataTableToDynamic(dt);
|
|
||||||
}
|
|
||||||
[Obsolete]
|
|
||||||
public virtual dynamic SqlQueryDynamic(string sql, params SugarParameter[] parameters)
|
|
||||||
{
|
|
||||||
var dt = this.GetDataTable(sql, parameters);
|
|
||||||
return dt == null ? null : this.Context.Utilities.DataTableToDynamic(dt);
|
|
||||||
}
|
|
||||||
[Obsolete]
|
|
||||||
public dynamic SqlQueryDynamic(string sql, List<SugarParameter> parameters)
|
|
||||||
{
|
|
||||||
var dt = this.GetDataTable(sql, parameters);
|
|
||||||
return dt == null ? null : this.Context.Utilities.DataTableToDynamic(dt);
|
|
||||||
}
|
|
||||||
[Obsolete]
|
|
||||||
public void UseStoredProcedure(Action action)
|
|
||||||
{
|
|
||||||
var oldCommandType = this.CommandType;
|
|
||||||
this.CommandType = CommandType.StoredProcedure;
|
|
||||||
this.IsClearParameters = false;
|
|
||||||
if (action != null)
|
|
||||||
{
|
|
||||||
action();
|
|
||||||
}
|
|
||||||
this.CommandType = oldCommandType;
|
|
||||||
this.IsClearParameters = true;
|
|
||||||
}
|
|
||||||
[Obsolete]
|
|
||||||
public T UseStoredProcedure<T>(Func<T> action)
|
|
||||||
{
|
|
||||||
T result = default(T);
|
|
||||||
var oldCommandType = this.CommandType;
|
|
||||||
this.CommandType = CommandType.StoredProcedure;
|
|
||||||
this.IsClearParameters = false;
|
|
||||||
if (action != null)
|
|
||||||
{
|
|
||||||
result = action();
|
|
||||||
}
|
|
||||||
this.CommandType = oldCommandType;
|
|
||||||
this.IsClearParameters = true;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,19 +178,5 @@ namespace SqlSugar
|
|||||||
Task<DbResult<T>> UseTranAsync<T>(Func<Task<T>> action, Action<Exception> errorCallBack = null);
|
Task<DbResult<T>> UseTranAsync<T>(Func<Task<T>> action, Action<Exception> errorCallBack = null);
|
||||||
IAdo UseStoredProcedure();
|
IAdo UseStoredProcedure();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region Obsolete
|
|
||||||
[Obsolete("Use db.ado.UseStoredProcedure().MethodName()")]
|
|
||||||
void UseStoredProcedure(Action action);
|
|
||||||
[Obsolete("Use db.ado.UseStoredProcedure().MethodName()")]
|
|
||||||
T UseStoredProcedure<T>(Func<T> action);
|
|
||||||
[Obsolete("Use SqlQuery<dynamic>(sql)")]
|
|
||||||
dynamic SqlQueryDynamic(string sql, object whereObj = null);
|
|
||||||
[Obsolete("Use SqlQuery<dynamic>(sql)")]
|
|
||||||
dynamic SqlQueryDynamic(string sql, params SugarParameter[] parameters);
|
|
||||||
[Obsolete("Use SqlQuery<dynamic>(sql)")]
|
|
||||||
dynamic SqlQueryDynamic(string sql, List<SugarParameter> parameters);
|
|
||||||
#endregion
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -328,7 +328,5 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
[Obsolete("Use AsSugarClient()")]
|
|
||||||
public ISqlSugarClient FullClient { get { return this.Context; } }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user