C# Class StockWebApp.DAL.StockDAL

数据访问类:StockDAL
ファイルを表示 Open project: AillsonWei/niusouyixia Class Usage Examples

Public Methods

Method 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 method

增加一条数据
public Add ( StockWebApp model ) : int
model StockWebApp
return int

DataRowToModel() public method

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

Delete() public method

删除一条数据
public Delete ( int ROW_ID ) : bool
ROW_ID int
return bool

DeleteList() public method

批量删除数据
public DeleteList ( string ROW_IDlist ) : bool
ROW_IDlist string
return bool

Exists() public method

是否存在该记录
public Exists ( int ROW_ID ) : bool
ROW_ID int
return bool

ExistsDate() public method

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

ExistsName() public method

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

Get5List() public method

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

GetList() public method

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

GetList() public method

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

GetListByPage() public method

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

GetModel() public method

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

GetModelName() public method

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

GetREMAININGList() public method

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

GetRecordCount() public method

获取记录总数
public GetRecordCount ( string strWhere ) : int
strWhere string
return int

Update() public method

更新一条数据
public Update ( StockWebApp model ) : bool
model StockWebApp
return bool