public static bool AsValue(DataRow row, string key, out DBKey outValue, DBKey defaultValue = default(DBKey)) { long value; bool result = AsValue <long>(row, key, out value, defaultValue.Value); outValue = value; return(result); }
protected override bool FromJSON_Key(JToken token, out DBKey outKey) { outKey = 0; if (token == null) { return(false); } outKey = token.AsDBKey(); return(true); }
protected override JToken ToJSON_Key(DBKey key) { return(new JValue(key.Value)); }