Exemple #1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(FirmaPageRenderType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.FirmaPageRenderTypeID == FirmaPageRenderTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static FirmaPageType CreateNewBlank(FirmaPageRenderType firmaPageRenderType)
 {
     return(new FirmaPageType(default(string), default(string), firmaPageRenderType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public FirmaPageType(string firmaPageTypeName, string firmaPageTypeDisplayName, FirmaPageRenderType firmaPageRenderType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.FirmaPageTypeID          = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.FirmaPageTypeName        = firmaPageTypeName;
     this.FirmaPageTypeDisplayName = firmaPageTypeDisplayName;
     this.FirmaPageRenderTypeID    = firmaPageRenderType.FirmaPageRenderTypeID;
 }