private static string ConcurrencyModeAsXml(EdmConcurrencyMode mode) { switch (mode) { case EdmConcurrencyMode.Fixed: return(CsdlConstants.Value_Fixed); case EdmConcurrencyMode.None: return(CsdlConstants.Value_None); default: throw new InvalidOperationException(Strings.UnknownEnumVal_ConcurrencyMode(mode.ToString())); } }
private static string ConcurrencyModeAsXml(EdmConcurrencyMode mode) { EdmConcurrencyMode edmConcurrencyMode = mode; switch (edmConcurrencyMode) { case EdmConcurrencyMode.None: { return("None"); } case EdmConcurrencyMode.Fixed: { return("Fixed"); } } throw new InvalidOperationException(Strings.UnknownEnumVal_ConcurrencyMode(mode.ToString())); }