C# Class StockWebApp.DAL.StockDAL

数据访问类:StockDAL
Afficher le fichier Open project: AillsonWei/niusouyixia Class Usage Examples

Méthodes publiques

Méthode Description
Add ( StockWebApp model ) : int

增加一条数据

DataRowToModel ( DataRow row ) : StockWebApp.Model.Stock

得到一个对象实体

Delete ( int ROW_ID ) : bool

删除一条数据

DeleteList ( string ROW_IDlist ) : bool

批量删除数据

Exists ( int ROW_ID ) : bool

是否存在该记录

ExistsDate ( System.DateTime dt ) : bool

是否存在该记录

ExistsName ( string strSql ) : bool

是否存在该记录(模糊) 重载董苇

Get5List ( string strData ) : DataSet

获得前几行数据 重载 董苇 反向取5天数据

GetList ( int Top, string strWhere, string filedOrder ) : DataSet

获得前几行数据

GetList ( string strWhere ) : DataSet

获得数据列表

GetListByPage ( string strWhere, string orderby, int startIndex, int endIndex ) : DataSet

分页获取数据列表

GetModel ( int ROW_ID ) : StockWebApp.Model.Stock

得到一个对象实体

GetModelName ( string code ) : StockWebApp.Model.Stock

得到一个对象实体 重载 董苇

GetREMAININGList ( string strData ) : DataSet

获得前几行数据 重载 董苇 反向取30个数据

GetRecordCount ( string strWhere ) : int

获取记录总数

Update ( StockWebApp model ) : bool

更新一条数据

Method Details

Add() public méthode

增加一条数据
public Add ( StockWebApp model ) : int
model StockWebApp
Résultat int

DataRowToModel() public méthode

得到一个对象实体
public DataRowToModel ( DataRow row ) : StockWebApp.Model.Stock
row System.Data.DataRow
Résultat StockWebApp.Model.Stock

Delete() public méthode

删除一条数据
public Delete ( int ROW_ID ) : bool
ROW_ID int
Résultat bool

DeleteList() public méthode

批量删除数据
public DeleteList ( string ROW_IDlist ) : bool
ROW_IDlist string
Résultat bool

Exists() public méthode

是否存在该记录
public Exists ( int ROW_ID ) : bool
ROW_ID int
Résultat bool

ExistsDate() public méthode

是否存在该记录
public ExistsDate ( System.DateTime dt ) : bool
dt System.DateTime
Résultat bool

ExistsName() public méthode

是否存在该记录(模糊) 重载董苇
public ExistsName ( string strSql ) : bool
strSql string
Résultat bool

Get5List() public méthode

获得前几行数据 重载 董苇 反向取5天数据
public Get5List ( string strData ) : DataSet
strData string
Résultat System.Data.DataSet

GetList() public méthode

获得前几行数据
public GetList ( int Top, string strWhere, string filedOrder ) : DataSet
Top int
strWhere string
filedOrder string
Résultat System.Data.DataSet

GetList() public méthode

获得数据列表
public GetList ( string strWhere ) : DataSet
strWhere string
Résultat System.Data.DataSet

GetListByPage() public méthode

分页获取数据列表
public GetListByPage ( string strWhere, string orderby, int startIndex, int endIndex ) : DataSet
strWhere string
orderby string
startIndex int
endIndex int
Résultat System.Data.DataSet

GetModel() public méthode

得到一个对象实体
public GetModel ( int ROW_ID ) : StockWebApp.Model.Stock
ROW_ID int
Résultat StockWebApp.Model.Stock

GetModelName() public méthode

得到一个对象实体 重载 董苇
public GetModelName ( string code ) : StockWebApp.Model.Stock
code string
Résultat StockWebApp.Model.Stock

GetREMAININGList() public méthode

获得前几行数据 重载 董苇 反向取30个数据
public GetREMAININGList ( string strData ) : DataSet
strData string
Résultat System.Data.DataSet

GetRecordCount() public méthode

获取记录总数
public GetRecordCount ( string strWhere ) : int
strWhere string
Résultat int

Update() public méthode

更新一条数据
public Update ( StockWebApp model ) : bool
model StockWebApp
Résultat bool