Exemplo n.º 1
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public DocumentLibraryDocumentRole(DocumentLibraryDocument documentLibraryDocument) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.DocumentLibraryDocumentRoleID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.DocumentLibraryDocumentID     = documentLibraryDocument.DocumentLibraryDocumentID;
     this.DocumentLibraryDocument       = documentLibraryDocument;
     documentLibraryDocument.DocumentLibraryDocumentRoles.Add(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static DocumentLibraryDocumentRole CreateNewBlank(DocumentLibraryDocument documentLibraryDocument)
 {
     return(new DocumentLibraryDocumentRole(documentLibraryDocument));
 }