private bool TryFindNullParametersInRelationshipAttribute(EdmRelationshipAttribute roleAttribute) { if (roleAttribute.RelationshipName == null) { SessionData.EdmItemErrors.Add( new EdmItemError(Strings.NullRelationshipNameforEdmRelationshipAttribute(SourceAssembly.FullName))); return(true); } var nullsFound = false; if (roleAttribute.RelationshipNamespaceName == null) { SessionData.EdmItemErrors.Add( new EdmItemError( Strings.NullParameterForEdmRelationshipAttribute( "RelationshipNamespaceName", roleAttribute.RelationshipName))); nullsFound = true; } if (roleAttribute.Role1Name == null) { SessionData.EdmItemErrors.Add( new EdmItemError( Strings.NullParameterForEdmRelationshipAttribute( "Role1Name", roleAttribute.RelationshipName))); nullsFound = true; } if (roleAttribute.Role1Type == null) { SessionData.EdmItemErrors.Add( new EdmItemError( Strings.NullParameterForEdmRelationshipAttribute( "Role1Type", roleAttribute.RelationshipName))); nullsFound = true; } if (roleAttribute.Role2Name == null) { SessionData.EdmItemErrors.Add( new EdmItemError( Strings.NullParameterForEdmRelationshipAttribute( "Role2Name", roleAttribute.RelationshipName))); nullsFound = true; } if (roleAttribute.Role2Type == null) { SessionData.EdmItemErrors.Add( new EdmItemError( Strings.NullParameterForEdmRelationshipAttribute( "Role2Type", roleAttribute.RelationshipName))); nullsFound = true; } return(nullsFound); }
private bool TryFindNullParametersInRelationshipAttribute(EdmRelationshipAttribute roleAttribute) { if (roleAttribute.RelationshipName == null) { this.SessionData.EdmItemErrors.Add(new EdmItemError(Strings.NullRelationshipNameforEdmRelationshipAttribute((object)this.SourceAssembly.FullName))); return(true); } bool flag = false; if (roleAttribute.RelationshipNamespaceName == null) { this.SessionData.EdmItemErrors.Add(new EdmItemError(Strings.NullParameterForEdmRelationshipAttribute((object)"RelationshipNamespaceName", (object)roleAttribute.RelationshipName))); flag = true; } if (roleAttribute.Role1Name == null) { this.SessionData.EdmItemErrors.Add(new EdmItemError(Strings.NullParameterForEdmRelationshipAttribute((object)"Role1Name", (object)roleAttribute.RelationshipName))); flag = true; } if (roleAttribute.Role1Type == (Type)null) { this.SessionData.EdmItemErrors.Add(new EdmItemError(Strings.NullParameterForEdmRelationshipAttribute((object)"Role1Type", (object)roleAttribute.RelationshipName))); flag = true; } if (roleAttribute.Role2Name == null) { this.SessionData.EdmItemErrors.Add(new EdmItemError(Strings.NullParameterForEdmRelationshipAttribute((object)"Role2Name", (object)roleAttribute.RelationshipName))); flag = true; } if (roleAttribute.Role2Type == (Type)null) { this.SessionData.EdmItemErrors.Add(new EdmItemError(Strings.NullParameterForEdmRelationshipAttribute((object)"Role2Type", (object)roleAttribute.RelationshipName))); flag = true; } return(flag); }