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