C# Class LearnLanguages.DataAccess.PhraseDalBase

This class wraps every IPhraseDal with a try..catch wrapper block that does the wrapping for each call. The descending classes only need to implement the
Inheritance: IPhraseDal
显示文件 Open project: ibgib/LearnLanguages

Public Methods

Method Description
Delete ( System.Guid id ) : Result
Fetch ( ICollection ids ) : Result>
Fetch ( string text ) : Result>
Fetch ( System.Guid id ) : Result
GetAll ( ) : Result>
Insert ( LearnLanguages.DataAccess.PhraseDto dtoToInsert ) : Result
New ( object criteria ) : Result
Update ( LearnLanguages.DataAccess.PhraseDto dtoToUpdate ) : Result

Protected Methods

Method Description
CheckAuthentication ( ) : void
DeleteImpl ( System.Guid id ) : LearnLanguages.DataAccess.PhraseDto
FetchImpl ( ICollection ids ) : ICollection
FetchImpl ( string text ) : ICollection
FetchImpl ( System.Guid id ) : LearnLanguages.DataAccess.PhraseDto
GetAllImpl ( ) : ICollection
InsertImpl ( LearnLanguages.DataAccess.PhraseDto dto ) : LearnLanguages.DataAccess.PhraseDto
NewImpl ( object criteria ) : LearnLanguages.DataAccess.PhraseDto
UpdateImpl ( LearnLanguages.DataAccess.PhraseDto dto ) : LearnLanguages.DataAccess.PhraseDto

Method Details

CheckAuthentication() protected method

protected CheckAuthentication ( ) : void
return void

Delete() public method

public Delete ( System.Guid id ) : Result
id System.Guid
return Result

DeleteImpl() protected abstract method

protected abstract DeleteImpl ( System.Guid id ) : LearnLanguages.DataAccess.PhraseDto
id System.Guid
return LearnLanguages.DataAccess.PhraseDto

Fetch() public method

public Fetch ( ICollection ids ) : Result>
ids ICollection
return Result>

Fetch() public method

public Fetch ( string text ) : Result>
text string
return Result>

Fetch() public method

public Fetch ( System.Guid id ) : Result
id System.Guid
return Result

FetchImpl() protected abstract method

protected abstract FetchImpl ( ICollection ids ) : ICollection
ids ICollection
return ICollection

FetchImpl() protected abstract method

protected abstract FetchImpl ( string text ) : ICollection
text string
return ICollection

FetchImpl() protected abstract method

protected abstract FetchImpl ( System.Guid id ) : LearnLanguages.DataAccess.PhraseDto
id System.Guid
return LearnLanguages.DataAccess.PhraseDto

GetAll() public method

public GetAll ( ) : Result>
return Result>

GetAllImpl() protected abstract method

protected abstract GetAllImpl ( ) : ICollection
return ICollection

Insert() public method

public Insert ( LearnLanguages.DataAccess.PhraseDto dtoToInsert ) : Result
dtoToInsert LearnLanguages.DataAccess.PhraseDto
return Result

InsertImpl() protected abstract method

protected abstract InsertImpl ( LearnLanguages.DataAccess.PhraseDto dto ) : LearnLanguages.DataAccess.PhraseDto
dto LearnLanguages.DataAccess.PhraseDto
return LearnLanguages.DataAccess.PhraseDto

New() public method

public New ( object criteria ) : Result
criteria object
return Result

NewImpl() protected abstract method

protected abstract NewImpl ( object criteria ) : LearnLanguages.DataAccess.PhraseDto
criteria object
return LearnLanguages.DataAccess.PhraseDto

Update() public method

public Update ( LearnLanguages.DataAccess.PhraseDto dtoToUpdate ) : Result
dtoToUpdate LearnLanguages.DataAccess.PhraseDto
return Result

UpdateImpl() protected abstract method

protected abstract UpdateImpl ( LearnLanguages.DataAccess.PhraseDto dto ) : LearnLanguages.DataAccess.PhraseDto
dto LearnLanguages.DataAccess.PhraseDto
return LearnLanguages.DataAccess.PhraseDto