You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq.Expressions;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SqlSugar
|
|
{
|
|
public interface IInsertable<T>
|
|
{
|
|
InsertBuilder InsertBuilder { get; set; }
|
|
int ExecuteCommand();
|
|
Task<int> ExecuteCommandAsync();
|
|
int ExecuteReturnIdentity();
|
|
Task<int> ExecuteReturnIdentityAsync();
|
|
T ExecuteReturnEntity();
|
|
Task<T> ExecuteReturnEntityAsync();
|
|
bool ExecuteCommandIdentityIntoEntity();
|
|
Task<bool> ExecuteCommandIdentityIntoEntityAsync();
|
|
long ExecuteReturnBigIdentity();
|
|
Task<long> ExecuteReturnBigIdentityAsync();
|
|
IInsertable<T> AS(string tableName);
|
|
IInsertable<T> With(string lockString);
|
|
IInsertable<T> InsertColumns(Expression<Func<T, object>> columns);
|
|
IInsertable<T> InsertColumns(Func<string, bool> insertColumMethod);
|
|
IInsertable<T> IgnoreColumns(Expression<Func<T, object>> columns);
|
|
IInsertable<T> IgnoreColumns(Func<string,bool> ignoreColumMethod);
|
|
IInsertable<T> Where(bool isInsertNull, bool isOffIdentity = false);
|
|
IInsertable<T> RemoveDataCache();
|
|
KeyValuePair<string, List<SugarParameter>> ToSql();
|
|
}
|
|
}
|