Beispiel #1
0
 public static byte[] GetRawBytes(SqlMap <string, byte[]> inputColumn, string path)
 {
     if (inputColumn.ContainsKey(path))
     {
         var value = inputColumn[path];
         return(value);
     }
     return(null);
 }
Beispiel #2
0
 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));
 }
Beispiel #4
0
 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;
 }
Beispiel #5
-1
 public static byte[] GetRawBytes(SqlMap<string, byte[]> inputColumn, string path)
 {
     if (inputColumn.ContainsKey(path))
     {
         var value = inputColumn[path];
         return value;
     }
     return null;
 }