C# Class GoogleCloudSamples.Models.DbBookStore

Implements IBookStore with a database.
Inheritance: IBookStore
Exibir arquivo Open project: GoogleCloudPlatform/getting-started-dotnet

Public Methods

Method Description
Create ( Book book ) : void
DbBookStore ( ApplicationDbContext dbcontext ) : System
DbBookStore ( ApplicationDbContext dbcontext ) : System.Linq
Delete ( long id ) : void
List ( int pageSize, string nextPageToken ) : BookList
List ( int pageSize, string nextPageToken, string userId = null ) : BookList
Read ( long id ) : Book
Update ( Book book ) : void

Method Details

Create() public method

public Create ( Book book ) : void
book Book
return void

DbBookStore() public method

public DbBookStore ( ApplicationDbContext dbcontext ) : System
dbcontext ApplicationDbContext
return System

DbBookStore() public method

public DbBookStore ( ApplicationDbContext dbcontext ) : System.Linq
dbcontext ApplicationDbContext
return System.Linq

Delete() public method

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

List() public method

public List ( int pageSize, string nextPageToken ) : BookList
pageSize int
nextPageToken string
return BookList

List() public method

public List ( int pageSize, string nextPageToken, string userId = null ) : BookList
pageSize int
nextPageToken string
userId string
return BookList

Read() public method

public Read ( long id ) : Book
id long
return Book

Update() public method

public Update ( Book book ) : void
book Book
return void