C# Class EmailAddressAttributeSample.Models.PeopleContext

Exibir arquivo Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method Description
Add ( Person person ) : Person
Get ( bool>.Func predicate ) : IEnumerable
GetSingle ( bool>.Func predicate ) : Person
GetSingle ( int id ) : Person>.Tuple
TryRemove ( int id ) : bool
TryUpdate ( Person person ) : bool

Method Details

Add() public method

public Add ( Person person ) : Person
person Person
return Person

Get() public method

public Get ( bool>.Func predicate ) : IEnumerable
predicate bool>.Func
return IEnumerable

GetSingle() public method

public GetSingle ( bool>.Func predicate ) : Person
predicate bool>.Func
return Person

GetSingle() public method

public GetSingle ( int id ) : Person>.Tuple
id int
return Person>.Tuple

TryRemove() public method

public TryRemove ( int id ) : bool
id int
return bool

TryUpdate() public method

public TryUpdate ( Person person ) : bool
person Person
return bool