Example #1
0
        private string GetPartitionQuery(IPartitionWrapper partition)
        {
            switch (partition.Source)
            {
            case MPartitionSource mPartitionSource:
                return(mPartitionSource.Expression);

            default:
                throw new InvalidOperationException(
                          $"Partition {partition.Name} in {_table.Name} is an unknown partition type.");
            }
        }
 public void CopyTo(IPartitionWrapper partition)
 {
     switch (Source)
     {
     case MPartitionSource ms:
         partition.Source = new MPartitionSource
         {
             Expression = ms.Expression
         };
         break;
     }
 }
Example #3
0
 public bool Remove(IPartitionWrapper item)
 {
     return(_partitionCollection.Remove(item.Partition));
 }
Example #4
0
 public void Add(IPartitionWrapper item)
 {
     _partitionCollection.Add(item.Partition);
 }