public static byte[] GetRawBytes(SqlMap <string, byte[]> inputColumn, string path) { if (inputColumn.ContainsKey(path)) { var value = inputColumn[path]; return(value); } return(null); }
private static string GetValue(SqlMap <string, byte[]> inputColumn, string path, int?count = null) { if (inputColumn.ContainsKey(path)) { if (count == null) { return(Encoding.UTF8.GetString(inputColumn[path])); } else { return(Encoding.UTF8.GetString(inputColumn[path], 0, Math.Min(MaxUSqlStringByteLength, inputColumn[path].Length))); } } return(null); }
private bool IsOnColumnList(string name) { return(_columnPaths.ContainsKey(name)); }
private static string GetValue(SqlMap<string, byte[]> inputColumn, string path, int? count = null) { if (inputColumn.ContainsKey(path)) { if (count == null) { return Encoding.UTF8.GetString(inputColumn[path]); }else { return Encoding.UTF8.GetString(inputColumn[path], 0, Math.Min(MaxUSqlStringByteLength, inputColumn[path].Length)); } } return null; }
public static byte[] GetRawBytes(SqlMap<string, byte[]> inputColumn, string path) { if (inputColumn.ContainsKey(path)) { var value = inputColumn[path]; return value; } return null; }