C# Class GoogleCloudSamples.Models.DatastoreBookStore

Inheritance: IBookStore
Afficher le fichier Open project: GoogleCloudPlatform/getting-started-dotnet

Méthodes publiques

Méthode Description
Create ( Book book ) : void
DatastoreBookStore ( string projectId ) : Google.Datastore.V1

Create a new datastore-backed bookstore.

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 méthode

public Create ( Book book ) : void
book Book
Résultat void

DatastoreBookStore() public méthode

Create a new datastore-backed bookstore.
public DatastoreBookStore ( string projectId ) : Google.Datastore.V1
projectId string Your Google Cloud project id
Résultat Google.Datastore.V1

Delete() public méthode

public Delete ( long id ) : void
id long
Résultat void

List() public méthode

public List ( int pageSize, string nextPageToken ) : BookList
pageSize int
nextPageToken string
Résultat BookList

List() public méthode

public List ( int pageSize, string nextPageToken, string userId = null ) : BookList
pageSize int
nextPageToken string
userId string
Résultat BookList

Read() public méthode

public Read ( long id ) : Book
id long
Résultat Book

Update() public méthode

public Update ( Book book ) : void
book Book
Résultat void