C# Class VolTeer.Cache.VT.Vol.sp_Vol_Address_Cache

显示文件 Open project: CISC181/VolTeerNET

Public Methods

Method Description
DeleteAddressContext ( sp_Vol_Address_DM _cAddress, sp_Vol_Addr_DM _cVolAddr ) : void

DeleteAddressContext - Remove from cache and call delete method in BLL.

InsertAddressContext ( sp_Vol_Address_DM &_cAddress, sp_Vol_Addr_DM &_cVolAddr ) : void

InsertAddressContext - Insert a new address into cache, then call BLL to add to database.

ListAddress ( sp_Vol_Address_DM _cAddress ) : sp_Vol_Address_DM
ListAddresses ( sp_Vol_Address_DM cVolAddr ) : List

ListAddresses - Get a list of addresses from BLL and add to cache.

ListPrimaryAddress ( sp_Vol_Address_DM cVolAddr ) : sp_Vol_Address_DM

ListPrimaryAddress - Check to see if the Primary Address record is in cache.. if it's not, get it and place into cache.

OnRemove ( string key, object cacheItem, System reason ) : void
UpdateAddressContext ( sp_Vol_Address_DM _cAddress, sp_Vol_Addr_DM _cVolAddr ) : void

UpdateAddressContext - Record is updated, remove from cache, add back to cache, and then call BLL to update database.

Method Details

DeleteAddressContext() public method

DeleteAddressContext - Remove from cache and call delete method in BLL.
public DeleteAddressContext ( sp_Vol_Address_DM _cAddress, sp_Vol_Addr_DM _cVolAddr ) : void
_cAddress VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM
_cVolAddr VolTeer.DomainModels.VT.Vol.sp_Vol_Addr_DM
return void

InsertAddressContext() public method

InsertAddressContext - Insert a new address into cache, then call BLL to add to database.
public InsertAddressContext ( sp_Vol_Address_DM &_cAddress, sp_Vol_Addr_DM &_cVolAddr ) : void
_cAddress VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM
_cVolAddr VolTeer.DomainModels.VT.Vol.sp_Vol_Addr_DM
return void

ListAddress() public method

public ListAddress ( sp_Vol_Address_DM _cAddress ) : sp_Vol_Address_DM
_cAddress VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM
return VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM

ListAddresses() public method

ListAddresses - Get a list of addresses from BLL and add to cache.
public ListAddresses ( sp_Vol_Address_DM cVolAddr ) : List
cVolAddr VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM
return List

ListPrimaryAddress() public method

ListPrimaryAddress - Check to see if the Primary Address record is in cache.. if it's not, get it and place into cache.
public ListPrimaryAddress ( sp_Vol_Address_DM cVolAddr ) : sp_Vol_Address_DM
cVolAddr VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM
return VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM

OnRemove() public static method

public static OnRemove ( string key, object cacheItem, System reason ) : void
key string
cacheItem object
reason System
return void

UpdateAddressContext() public method

UpdateAddressContext - Record is updated, remove from cache, add back to cache, and then call BLL to update database.
public UpdateAddressContext ( sp_Vol_Address_DM _cAddress, sp_Vol_Addr_DM _cVolAddr ) : void
_cAddress VolTeer.DomainModels.VT.Vol.sp_Vol_Address_DM
_cVolAddr VolTeer.DomainModels.VT.Vol.sp_Vol_Addr_DM
return void