Ejemplo n.º 1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(FundingSourceCustomAttributeTypeRolePermissionType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.FundingSourceCustomAttributeTypeRolePermissionTypeID == FundingSourceCustomAttributeTypeRolePermissionTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static FundingSourceCustomAttributeTypeRole CreateNewBlank(FundingSourceCustomAttributeType fundingSourceCustomAttributeType, Role role, FundingSourceCustomAttributeTypeRolePermissionType fundingSourceCustomAttributeTypeRolePermissionType)
 {
     return(new FundingSourceCustomAttributeTypeRole(fundingSourceCustomAttributeType, role, fundingSourceCustomAttributeTypeRolePermissionType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public FundingSourceCustomAttributeTypeRole(FundingSourceCustomAttributeType fundingSourceCustomAttributeType, Role role, FundingSourceCustomAttributeTypeRolePermissionType fundingSourceCustomAttributeTypeRolePermissionType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.FundingSourceCustomAttributeTypeRoleID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.FundingSourceCustomAttributeTypeID     = fundingSourceCustomAttributeType.FundingSourceCustomAttributeTypeID;
     this.FundingSourceCustomAttributeType       = fundingSourceCustomAttributeType;
     fundingSourceCustomAttributeType.FundingSourceCustomAttributeTypeRoles.Add(this);
     this.RoleID = role.RoleID;
     this.FundingSourceCustomAttributeTypeRolePermissionTypeID = fundingSourceCustomAttributeTypeRolePermissionType.FundingSourceCustomAttributeTypeRolePermissionTypeID;
 }