C# Class SampleWebApiAspNetCore.Repositories.HouseRepository

Inheritance: IHouseRepository
显示文件 Open project: FabianGosebrink/ASPNET-Core-WebAPI-Sample

Public Methods

Method Description
Add ( HouseEntity toAdd ) : HouseEntity
Delete ( int id ) : void
GetAll ( ) : List
GetSingle ( int id ) : HouseEntity
HouseRepository ( ) : System.Collections.Generic
Update ( HouseEntity toUpdate ) : HouseEntity

Method Details

Add() public method

public Add ( HouseEntity toAdd ) : HouseEntity
toAdd SampleWebApiAspNetCore.Models.HouseEntity
return SampleWebApiAspNetCore.Models.HouseEntity

Delete() public method

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

GetAll() public method

public GetAll ( ) : List
return List

GetSingle() public method

public GetSingle ( int id ) : HouseEntity
id int
return SampleWebApiAspNetCore.Models.HouseEntity

HouseRepository() public method

public HouseRepository ( ) : System.Collections.Generic
return System.Collections.Generic

Update() public method

public Update ( HouseEntity toUpdate ) : HouseEntity
toUpdate SampleWebApiAspNetCore.Models.HouseEntity
return SampleWebApiAspNetCore.Models.HouseEntity