C# Class HBM.CustomerManagement.CustomerDAO

ファイルを表示 Open project: nirshandileep/HotelManagement

Public Methods

Method Description
Delete ( Customer customer ) : bool
Insert ( Customer customer, Microsoft.Practices.EnterpriseLibrary.Data.Database db, DbTransaction transaction ) : bool
InsertUpdateDelete ( Customer customer, Microsoft.Practices.EnterpriseLibrary.Data.Database db, DbTransaction transaction ) : bool
SelectAll ( Customer customer ) : DataSet
SelectByGroup ( int customerID ) : DataSet
SelectById ( int customerID ) : DataSet
SelectGroupByGroupId ( int groupId ) : DataSet
Update ( Customer customer, Microsoft.Practices.EnterpriseLibrary.Data.Database db, DbTransaction transacion ) : bool

Method Details

Delete() public method

public Delete ( Customer customer ) : bool
customer Customer
return bool

Insert() public method

public Insert ( Customer customer, Microsoft.Practices.EnterpriseLibrary.Data.Database db, DbTransaction transaction ) : bool
customer Customer
db Microsoft.Practices.EnterpriseLibrary.Data.Database
transaction System.Data.Common.DbTransaction
return bool

InsertUpdateDelete() public method

public InsertUpdateDelete ( Customer customer, Microsoft.Practices.EnterpriseLibrary.Data.Database db, DbTransaction transaction ) : bool
customer Customer
db Microsoft.Practices.EnterpriseLibrary.Data.Database
transaction System.Data.Common.DbTransaction
return bool

SelectAll() public method

public SelectAll ( Customer customer ) : DataSet
customer Customer
return System.Data.DataSet

SelectByGroup() public method

public SelectByGroup ( int customerID ) : DataSet
customerID int
return System.Data.DataSet

SelectById() public method

public SelectById ( int customerID ) : DataSet
customerID int
return System.Data.DataSet

SelectGroupByGroupId() public method

public SelectGroupByGroupId ( int groupId ) : DataSet
groupId int
return System.Data.DataSet

Update() public method

public Update ( Customer customer, Microsoft.Practices.EnterpriseLibrary.Data.Database db, DbTransaction transacion ) : bool
customer Customer
db Microsoft.Practices.EnterpriseLibrary.Data.Database
transacion System.Data.Common.DbTransaction
return bool