C# Class Data.AdoNetRepositories.AdoUserRepository

Inheritance: IRepository
Exibir arquivo Open project: sedc-codecademy/skwd8-09-aspnetwebapi

Public Methods

Method Description
AdoUserRepository ( string connectionString ) : Data.Interfaces
GetAll ( ) : ICollection
GetById ( int id ) : User
Insert ( entity ) : void
Remove ( int id ) : void
Update ( entity ) : void

Method Details

AdoUserRepository() public method

public AdoUserRepository ( string connectionString ) : Data.Interfaces
connectionString string
return Data.Interfaces

GetAll() public method

public GetAll ( ) : ICollection
return ICollection

GetById() public method

public GetById ( int id ) : User
id int
return User

Insert() public method

public Insert ( entity ) : void
return void

Remove() public method

public Remove ( int id ) : void
id int
return void

Update() public method

public Update ( entity ) : void
return void