mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-05 13:17:57 +08:00
55 lines
2.1 KiB
C#
55 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Linq.Expressions;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SqlSugar
|
|
{
|
|
public partial interface IInsertable<T> where T :class,new()
|
|
{
|
|
InsertBuilder InsertBuilder { get; set; }
|
|
int ExecuteCommand();
|
|
Task<int> ExecuteCommandAsync();
|
|
long ExecuteReturnSnowflakeId();
|
|
List<long> ExecuteReturnSnowflakeIdList();
|
|
Task<long> ExecuteReturnSnowflakeIdAsync();
|
|
Task<List<long>> ExecuteReturnSnowflakeIdListAsync();
|
|
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(params string[] columns);
|
|
|
|
IInsertable<T> IgnoreColumns(Expression<Func<T, object>> columns);
|
|
IInsertable<T> IgnoreColumns(params string[]columns);
|
|
IInsertable<T> IgnoreColumns(bool ignoreNullColumn, bool isOffIdentity = false);
|
|
|
|
ISubInsertable<T> AddSubList(Expression<Func<T, object>> subForeignKey);
|
|
ISubInsertable<T> AddSubList(Expression<Func<T, SubInsertTree>> tree);
|
|
IParameterInsertable<T> UseParameter();
|
|
IInsertable<T> CallEntityMethod(Expression<Action<T>> method);
|
|
|
|
IInsertable<T> EnableDiffLogEvent(object businessData = null);
|
|
IInsertable<T> RemoveDataCache();
|
|
IInsertable<T> RemoveDataCache(string likeString);
|
|
KeyValuePair<string, List<SugarParameter>> ToSql();
|
|
SqlServerBlukCopy UseSqlServer();
|
|
MySqlBlukCopy<T> UseMySql();
|
|
OracleBlukCopy UseOracle();
|
|
|
|
SplitInsertable<T> SplitTable();
|
|
SplitInsertable<T> SplitTable(SplitType splitType);
|
|
void AddQueue();
|
|
|
|
}
|
|
}
|