Example #1
0
 public void SetDimItem(SqlBinary value, SqlInt32Array indices)
 {
     if (!indices.IsNull)
     {
         _arrayInfo.SetValue <Byte[]>(_array, !value.IsNull ? value.Value : null, indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray());
     }
 }
Example #2
0
 public void SetDimItem(SqlRange value, SqlInt32Array indices)
 {
     if (!indices.IsNull)
     {
         _arrayInfo.SetValue <Range?>(_array, !value.IsNull ? value.Value : default(Range?), indices.Array.Enumerate(0, indices.Length.Value).Select(t => t.Value).ToArray());
     }
 }
Example #3
0
 private static void SetValue(Array array, RegularArrayInfo arrayInfo, T value, bool asRanges, bool zeroBased, int[] transpose, int[] indices)
 {
     arrayInfo.SetValue <T>(array, value, asRanges, zeroBased, transpose != null ? Transpose(indices, transpose) : indices);
 }