Class DeleteProvider<T1>
Inheritance
System.Object
DeleteProvider<T1>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: FreeSql.dll
Syntax
public abstract class DeleteProvider<T1> : DeleteProvider, IDelete<T1>
Type Parameters
Constructors
|
Improve this Doc
View Source
DeleteProvider(IFreeSql, CommonUtils, CommonExpression, Object)
Declaration
public DeleteProvider(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere)
Parameters
Methods
|
Improve this Doc
View Source
AsTable(Func<String, String>)
Declaration
public IDelete<T1> AsTable(Func<string, string> tableRule)
Parameters
| Type |
Name |
Description |
| System.Func<System.String, System.String> |
tableRule |
|
Returns
|
Improve this Doc
View Source
AsTable(String)
Declaration
public IDelete<T1> AsTable(string tableName)
Parameters
| Type |
Name |
Description |
| System.String |
tableName |
|
Returns
|
Improve this Doc
View Source
AsType(Type)
Declaration
public IDelete<T1> AsType(Type entityType)
Parameters
| Type |
Name |
Description |
| System.Type |
entityType |
|
Returns
|
Improve this Doc
View Source
ClearData()
Declaration
protected void ClearData()
|
Improve this Doc
View Source
CommandTimeout(Int32)
Declaration
public IDelete<T1> CommandTimeout(int timeout)
Parameters
| Type |
Name |
Description |
| System.Int32 |
timeout |
|
Returns
|
Improve this Doc
View Source
DisableGlobalFilter(String[])
Declaration
public IDelete<T1> DisableGlobalFilter(params string[] name)
Parameters
| Type |
Name |
Description |
| System.String[] |
name |
|
Returns
|
Improve this Doc
View Source
ExecuteAffrows()
Declaration
public virtual int ExecuteAffrows()
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
ExecuteAffrowsAsync(CancellationToken)
Declaration
public virtual async Task<int> ExecuteAffrowsAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Int32> |
|
|
Improve this Doc
View Source
ExecuteDeleted()
Declaration
public abstract List<T1> ExecuteDeleted()
Returns
| Type |
Description |
| System.Collections.Generic.List<T1> |
|
|
Improve this Doc
View Source
ExecuteDeletedAsync(CancellationToken)
Declaration
public abstract Task<List<T1>> ExecuteDeletedAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Collections.Generic.List<T1>> |
|
|
Improve this Doc
View Source
TableRuleInvoke()
Declaration
protected string TableRuleInvoke()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ToSql()
Declaration
public virtual string ToSql()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ToSqlFetch(Action<StringBuilder>)
Declaration
public void ToSqlFetch(Action<StringBuilder> fetch)
Parameters
| Type |
Name |
Description |
| System.Action<System.Text.StringBuilder> |
fetch |
|
|
Improve this Doc
View Source
ToSqlFetchAsync(Func<StringBuilder, Task>)
Declaration
public async Task ToSqlFetchAsync(Func<StringBuilder, Task> fetchAsync)
Parameters
| Type |
Name |
Description |
| System.Func<System.Text.StringBuilder, System.Threading.Tasks.Task> |
fetchAsync |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
Where(T1)
Declaration
public IDelete<T1> Where(T1 item)
Parameters
| Type |
Name |
Description |
| T1 |
item |
|
Returns
|
Improve this Doc
View Source
Where(IEnumerable<T1>)
Declaration
public IDelete<T1> Where(IEnumerable<T1> items)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<T1> |
items |
|
Returns
|
Improve this Doc
View Source
Where(Expression<Func<T1, Boolean>>)
Declaration
public IDelete<T1> Where(Expression<Func<T1, bool>> exp)
Parameters
| Type |
Name |
Description |
| System.Linq.Expressions.Expression<System.Func<T1, System.Boolean>> |
exp |
|
Returns
|
Improve this Doc
View Source
Where(String, Object)
Declaration
public IDelete<T1> Where(string sql, object parms = null)
Parameters
| Type |
Name |
Description |
| System.String |
sql |
|
| System.Object |
parms |
|
Returns
|
Improve this Doc
View Source
WhereDynamic(Object, Boolean)
Declaration
public IDelete<T1> WhereDynamic(object dywhere, bool not = false)
Parameters
| Type |
Name |
Description |
| System.Object |
dywhere |
|
| System.Boolean |
not |
|
Returns
|
Improve this Doc
View Source
WhereIf(Boolean, Expression<Func<T1, Boolean>>)
Declaration
public IDelete<T1> WhereIf(bool condition, Expression<Func<T1, bool>> exp)
Parameters
| Type |
Name |
Description |
| System.Boolean |
condition |
|
| System.Linq.Expressions.Expression<System.Func<T1, System.Boolean>> |
exp |
|
Returns
|
Improve this Doc
View Source
WhereIf(Boolean, String, Object)
Declaration
public IDelete<T1> WhereIf(bool condition, string sql, object parms = null)
Parameters
| Type |
Name |
Description |
| System.Boolean |
condition |
|
| System.String |
sql |
|
| System.Object |
parms |
|
Returns
|
Improve this Doc
View Source
WithConnection(DbConnection)
Declaration
public IDelete<T1> WithConnection(DbConnection connection)
Parameters
| Type |
Name |
Description |
| System.Data.Common.DbConnection |
connection |
|
Returns
|
Improve this Doc
View Source
WithTransaction(DbTransaction)
Declaration
public IDelete<T1> WithTransaction(DbTransaction transaction)
Parameters
| Type |
Name |
Description |
| System.Data.Common.DbTransaction |
transaction |
|
Returns
Implements