Source/NFX/DataAccess/CRUD/Schema.cs
/// <summary>
/// For fields with ValueList returns value's description per specified schema
/// </summary>
For fields with ValueList returns value's description per specified schema
For fields with ValueList returns value ' s description per specified schema
public string ValueDescription(object fieldValue, string target = null, bool caseSensitiveKeys = false)
                {
                  var sv = fieldValue.AsString();
                  if (sv.IsNullOrWhiteSpace()) return string.Empty;
                  var atr = this[target];
                  if (atr==null) return fieldValue.AsString(string.Empty);
                  var vl = atr.ParseValueList(caseSensitiveKeys);
                  return vl[sv].AsString(string.Empty);
                }
public string ValueDescription ( object fieldValue , string target = null , bool caseSensitiveKeys = false ) { var sv = fieldValue . AsString ( ) ; if ( sv . IsNullOrWhiteSpace ( ) ) return string . Empty ; var atr = this [ target ] ; if ( atr == null ) return fieldValue . AsString ( string . Empty ) ; var vl = atr . ParseValueList ( caseSensitiveKeys ) ; return vl [ sv ] . AsString ( string . Empty ) ; }
For fields with ValueList returns value's description per specified schema
For fields with ValueList returns value ' s description per specified schema
fieldValue
object
target
string
caseSensitiveKeys
bool