49 lines
1.8 KiB
C#
49 lines
1.8 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 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(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);
|
|
|
|
|
|
IInsertable<T> EnableDiffLogEvent(object businessData = null);
|
|
IInsertable<T> RemoveDataCache();
|
|
KeyValuePair<string, List<SugarParameter>> ToSql();
|
|
void AddQueue();
|
|
|
|
#region Obsolete
|
|
[Obsolete("use IgnoreColumns(string[] columns")]
|
|
|
|
IInsertable<T> IgnoreColumns(Func<string, bool> ignoreColumMethod);
|
|
[Obsolete("use InsertColumns(string[] columns")]
|
|
IInsertable<T> InsertColumns(Func<string, bool> insertColumMethod);
|
|
[Obsolete("use IgnoreColumns(bool isNoInsertNull, bool isOffIdentity = false)")]
|
|
IInsertable<T> Where(bool ignoreNullColumn, bool isOffIdentity = false);
|
|
#endregion
|
|
}
|
|
}
|