mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
Remove Obsolete
This commit is contained in:
@@ -1500,54 +1500,5 @@ namespace SqlSugar
|
||||
return result;
|
||||
}
|
||||
#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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,20 +177,6 @@ namespace SqlSugar
|
||||
Task<DbResult<bool>> UseTranAsync(Func<Task> action, Action<Exception> errorCallBack = null);
|
||||
Task<DbResult<T>> UseTranAsync<T>(Func<Task<T>> action, Action<Exception> errorCallBack = null);
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -327,8 +327,6 @@ namespace SqlSugar
|
||||
return await this.Context.Deleteable<T>().In(ids).ExecuteCommandAsync() > 0;
|
||||
}
|
||||
#endregion
|
||||
|
||||
[Obsolete("Use AsSugarClient()")]
|
||||
public ISqlSugarClient FullClient { get { return this.Context; } }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user