src/IServices/IBaseServices.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Data;
using System.Dynamic;
using System.Linq.Expressions;
using System.Threading.Tasks;
using YL.NetCore;
using YL.Utils.Table;
namespace IServices
{
public interface IBaseServices<T> : IDependency where T : class, new()
{
#region add
bool Insert(T t, bool IgnoreNullColumn = true);
bool InsertIgnoreNullColumn(T t);
bool InsertIgnoreNullColumn(T t, params string[] columns);
bool Insert(SqlSugarClient client, T t);
long InsertBigIdentity(T t);
bool Insert(List<T> t);
bool InsertIgnoreNullColumn(List<T> t);
bool InsertIgnoreNullColumn(List<T> t, params string[] columns);
DbResult<bool> InsertTran(T t);
DbResult<bool> InsertTran(List<T> t);
T InsertReturnEntity(T t);
T InsertReturnEntity(T t, string sqlWith = SqlWith.UpdLock);
bool ExecuteCommand(string sql, object parameters);
bool ExecuteCommand(string sql, params SugarParameter[] parameters);
bool ExecuteCommand(string sql, List<SugarParameter> parameters);
#endregion add
#region update
bool UpdateEntity(T entity);
bool Update(T entity, Expression<Func<T, bool>> expression);
bool Update(T entity, Expression<Func<T, object>> expression);
bool Update(T entity, Expression<Func<T, object>> expression, Expression<Func<T, bool>> where);
bool Update(SqlSugarClient client, T entity, Expression<Func<T, object>> expression, Expression<Func<T, bool>> where);
后面还有 61 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。