private static string MultiplicityAsXml(EdmMultiplicity endKind) { EdmMultiplicity edmMultiplicity = endKind; switch (edmMultiplicity) { case EdmMultiplicity.ZeroOrOne: { return("0..1"); } case EdmMultiplicity.One: { return("1"); } case EdmMultiplicity.Many: { return("*"); } } throw new InvalidOperationException(Strings.UnknownEnumVal_Multiplicity(endKind.ToString())); }
private static string MultiplicityAsXml(EdmMultiplicity endKind) { switch (endKind) { case EdmMultiplicity.Many: return(CsdlConstants.Value_EndMany); case EdmMultiplicity.One: return(CsdlConstants.Value_EndRequired); case EdmMultiplicity.ZeroOrOne: return(CsdlConstants.Value_EndOptional); default: throw new InvalidOperationException(Strings.UnknownEnumVal_Multiplicity(endKind.ToString())); } }