BaseDAL(T) Class

DCSoft.DBUtilityGeneric

BaseDALT Class
DAL 访问数据的基类
Inheritance Hierarchy
SystemObject  DCSoft.DBUtilityGeneric.DALBaseDALT

Namespace: DCSoft.DBUtilityGeneric.DAL
Assembly: DCSoft.DBUtilityGeneric (in DCSoft.DBUtilityGeneric.dll) Version: 0.0.0.0
Syntax
C#
public 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
  NameDescription
Public methodBaseDALT
Initializes a new instance of the BaseDALT class
Top
Methods
  NameDescription
Public methodadd
添加记录
Public methodaddBatch
批量添加记录操作
Public methoddelete(WhereT)
删除对象
Public methoddelete(DictionaryString, Object)
多主键(条件)
Public methoddelete(String)
单主键(条件)
Public methoddelete(String)
删除单主键,多条记录
Public methoddelete(T)
根据实体删除记录
Public methodEquals (Inherited from Object.)
Public methodexecSql(String)
执行sql语句
Public methodexecSql(String, DictionaryString, Object)
执行sql语句
Protected methodFinalize (Inherited from Object.)
Public methodgetCount
获取总记录数
Public methodgetCount(WhereT)
有条件获取总记录数
Public methodgetCount(DictionaryField, Object)
有条件获取总记录数
Public methodgetDataSet(String)
执行sql 返回DataSet
Public methodgetDataSet(String, DictionaryString, Object)
执行sql 返回DataTable
Public methodgetDataSetByExecProc
执行存储过程,返回DataSet
Public methodgetDataTable
获取所有记录列表数据
Public methodgetDataTable(DictionaryField, Object)
获取条件查询列表
Public methodgetDataTable(String)
执行sql 返回DataTable
Public methodgetDataTable(String, DictionaryString, Object)
执行sql 返回DataTable
Public methodgetDataTableByExecProc
执行存储过程,返回DataTable
Public methodGetDbSession
获取DbSession对象
Public methodgetEntity(WhereT)
获取一条记录
Public methodgetEntity(DictionaryField, Object)
获取一条记录,根据条件查询
Public methodgetEntity(String)
获取一条记录,单主键
Public methodGetHashCode (Inherited from Object.)
Public methodgetList
获取所有记录列表数据
Public methodgetList(WhereT)
获取条件查询列表
Public methodgetList(DictionaryField, Object)
获取条件查询列表
Public methodgetList(WhereT, OrderByClip)
获取数据
Public methodgetList(DictionaryField, Object, OrderByClip)
获取条件查询列表
Public methodgetList(Int32, Int32, WhereT, OrderByClip)
获取分页查询列表
Public methodgetPage(Int32, Int32, DictionaryField, Object)
获取分页数据
Public methodgetPage(Int32, Int32, WhereT, OrderByClip)
获取分页数据
Public methodgetPage(Int32, Int32, DictionaryField, Object, OrderByClip)
获取分页数据
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodupdate(T)
更新记录
Public methodupdate(Field, Object, Field, Object)
单主键,单字段更新
Public methodupdateAll
更新记录的所有字段
Public methodupdateBatch
批量更新操作
Top
See Also