String.IsNullOrEmpty(variable)?nameof(variable):String.Empty
而不是
删除了 Beyeler,Nicole应该是
只有贝耶勒。
我试过这个:
var str = String.Join(',', new List<String>
{
String.IsNullOrEmpty(a)?nameof(a):String.Empty,
String.IsNullOrEmpty(b)?nameof(b):String.Empty,
String.IsNullOrEmpty(c)?nameof(c):String.Empty,
String.IsNullOrEmpty(d)?nameof(d):String.Empty
});
string.Format("Parameter {0} is missing please verify inputs", str);
答案 0 :(得分:1)
您可以嵌套功能:
SUBSTRING(REPLACE(name, '*Deleted*', '' ) FROM 1 FOR POSITION(',' IN REPLACE(name, '*Deleted*', '' ))-1) FROM OBJ_R