C# 클래스 GoogleCloudSamples.Models.DatastoreBookStoreExtensionMethods

파일 보기 프로젝트 열기: GoogleCloudPlatform/getting-started-dotnet

공개 메소드들

메소드 설명
ToBook ( this entity ) : Book

Unpack a book from a datastore entity.

ToEntity ( this book ) : System.Entity

Create a datastore entity with the same values as book.

ToId ( this key ) : long

Make a book id given a datastore key.

ToKey ( this id ) : Key

Make a datastore key given a book's id.

메소드 상세

ToBook() 공개 정적인 메소드

Unpack a book from a datastore entity.
public static ToBook ( this entity ) : Book
entity this An entity retrieved from datastore.
리턴 Book

ToEntity() 공개 정적인 메소드

Create a datastore entity with the same values as book.
public static ToEntity ( this book ) : System.Entity
book this The book to store in datastore.
리턴 System.Entity

ToId() 공개 정적인 메소드

Make a book id given a datastore key.
public static ToId ( this key ) : long
key this A datastore key
리턴 long

ToKey() 공개 정적인 메소드

Make a datastore key given a book's id.
public static ToKey ( this id ) : Key
id this A book's id.
리턴 Key