Beispiel #1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(ProjectCustomAttributeTypeRolePermissionType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.ProjectCustomAttributeTypeRolePermissionTypeID == ProjectCustomAttributeTypeRolePermissionTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static ProjectCustomAttributeTypeRole CreateNewBlank(ProjectCustomAttributeType projectCustomAttributeType, ProjectCustomAttributeTypeRolePermissionType projectCustomAttributeTypeRolePermissionType)
 {
     return(new ProjectCustomAttributeTypeRole(projectCustomAttributeType, projectCustomAttributeTypeRolePermissionType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public ProjectCustomAttributeTypeRole(ProjectCustomAttributeType projectCustomAttributeType, ProjectCustomAttributeTypeRolePermissionType projectCustomAttributeTypeRolePermissionType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.ProjectCustomAttributeTypeRoleID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.ProjectCustomAttributeTypeID     = projectCustomAttributeType.ProjectCustomAttributeTypeID;
     this.ProjectCustomAttributeType       = projectCustomAttributeType;
     projectCustomAttributeType.ProjectCustomAttributeTypeRoles.Add(this);
     this.ProjectCustomAttributeTypeRolePermissionTypeID = projectCustomAttributeTypeRolePermissionType.ProjectCustomAttributeTypeRolePermissionTypeID;
 }