 | BaseDALT Class |
DAL 访问数据的基类
Inheritance Hierarchy
Namespace: DCSoft.DBUtilityGeneric.DALAssembly: DCSoft.DBUtilityGeneric (in DCSoft.DBUtilityGeneric.dll) Version: 0.0.0.0
Syntaxpublic class BaseDAL<T>
where T : Entity
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "T:DCSoft.DBUtilityGeneric.DAL.BaseDAL`1"]
The BaseDALT type exposes the following members.
Constructors
| Name | Description |
---|
 | BaseDALT | Initializes a new instance of the BaseDALT class |
Top
Methods
| Name | Description |
---|
 | add |
添加记录
|
 | addBatch |
批量添加记录操作
|
 | delete(WhereT) |
删除对象
|
 | delete(DictionaryString, Object) |
多主键(条件)
|
 | delete(String) |
单主键(条件)
|
 | delete(String) |
删除单主键,多条记录
|
 | delete(T) |
根据实体删除记录
|
 | Equals | (Inherited from Object.) |
 | execSql(String) |
执行sql语句
|
 | execSql(String, DictionaryString, Object) |
执行sql语句
|
 | Finalize | (Inherited from Object.) |
 | getCount |
获取总记录数
|
 | getCount(WhereT) |
有条件获取总记录数
|
 | getCount(DictionaryField, Object) |
有条件获取总记录数
|
 | getDataSet(String) |
执行sql 返回DataSet
|
 | getDataSet(String, DictionaryString, Object) |
执行sql 返回DataTable
|
 | getDataSetByExecProc |
执行存储过程,返回DataSet
|
 | getDataTable |
获取所有记录列表数据
|
 | getDataTable(DictionaryField, Object) |
获取条件查询列表
|
 | getDataTable(String) |
执行sql 返回DataTable
|
 | getDataTable(String, DictionaryString, Object) |
执行sql 返回DataTable
|
 | getDataTableByExecProc |
执行存储过程,返回DataTable
|
 | GetDbSession |
获取DbSession对象
|
 | getEntity(WhereT) |
获取一条记录
|
 | getEntity(DictionaryField, Object) |
获取一条记录,根据条件查询
|
 | getEntity(String) |
获取一条记录,单主键
|
 | GetHashCode | (Inherited from Object.) |
 | getList |
获取所有记录列表数据
|
 | getList(WhereT) |
获取条件查询列表
|
 | getList(DictionaryField, Object) |
获取条件查询列表
|
 | getList(WhereT, OrderByClip) |
获取数据
|
 | getList(DictionaryField, Object, OrderByClip) |
获取条件查询列表
|
 | getList(Int32, Int32, WhereT, OrderByClip) |
获取分页查询列表
|
 | getPage(Int32, Int32, DictionaryField, Object) |
获取分页数据
|
 | getPage(Int32, Int32, WhereT, OrderByClip) |
获取分页数据
|
 | getPage(Int32, Int32, DictionaryField, Object, OrderByClip) |
获取分页数据
|
 | GetType | (Inherited from Object.) |
 | MemberwiseClone | (Inherited from Object.) |
 | ToString | (Inherited from Object.) |
 | update(T) |
更新记录
|
 | update(Field, Object, Field, Object) |
单主键,单字段更新
|
 | updateAll |
更新记录的所有字段
|
 | updateBatch |
批量更新操作
|
Top
See Also