C# Class PhotoSharingApp.AppService.Shared.Models.DocumentDB.PhotoDocument

The photo json document.
Inheritance: BaseDocument
Mostrar archivo Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Properties

Property Type Description
DocumentTypeIdentifier string

Private Properties

Property Type Description

Public Methods

Method Description
CreateFromContract ( PhotoContract contract ) : PhotoDocument

Creates a PhotoDocument from a PhotoContract.

ToContract ( ICollection userDocumentsForPhotosAndAnnotations ) : PhotoContract

Creates a PhotoContract from this document.

Method Details

CreateFromContract() public static method

Creates a PhotoDocument from a PhotoContract.
public static CreateFromContract ( PhotoContract contract ) : PhotoDocument
contract PhotoSharingApp.Portable.DataContracts.PhotoContract
return PhotoDocument

ToContract() public method

Creates a PhotoContract from this document.
public ToContract ( ICollection userDocumentsForPhotosAndAnnotations ) : PhotoContract
userDocumentsForPhotosAndAnnotations ICollection /// A collection of all the user documents needed for /// the PhotoContract.User and AnnotationContract.From fields. ///
return PhotoSharingApp.Portable.DataContracts.PhotoContract

Property Details

DocumentTypeIdentifier public_oe static_oe property

The document type string value for the photo json document.
public static string DocumentTypeIdentifier
return string