NFine.Data/Repository/IRepositoryBase.cs
(完整代码) 1KB/*******************************************************************************
* Copyright © 2016 NFine.Framework 版权所有
* Author: NFine
* Description: NFine快速开发平台
* Website:http://www.nfine.cn
*********************************************************************************/
using NFine.Code;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
namespace NFine.Data
{
public interface IRepositoryBase : IDisposable
{
IRepositoryBase BeginTrans();
int Commit();
int Insert<TEntity>(TEntity entity) where TEntity : class;
int Insert<TEntity>(List<TEntity> entitys) where TEntity : class;
int Update<TEntity>(TEntity entity) where TEntity : class;
int Delete<TEntity>(TEntity entity) where TEntity : class;
int Delete<TEntity>(Expression<Func<TEntity, bool>> predicate) where TEntity : class;
TEntity FindEntity<TEntity>(object keyValue) where TEntity : class;
TEntity FindEntity<TEntity>(Expression<Func<TEntity, bool>> predicate) where TEntity : class;
IQueryable<TEntity> IQueryable<TEntity>() where TEntity : class;
IQueryable<TEntity> IQueryable<TEntity>(Expression<Func<TEntity, bool>> predicate) where TEntity : class;
List<TEntity> FindList<TEntity>(string strSql) where TEntity : class;
List<TEntity> FindList<TEntity>(string strSql, DbParameter[] dbParameter) where TEntity : class;
List<TEntity> FindList<TEntity>(Pagination pagination) where TEntity : class,new();
List<TEntity> FindList<TEntity>(Expression<Func<TEntity, bool>> predicate, Pagination pagination) where TEntity : class,new();
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
