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; } }
public bool Remove(IPartitionWrapper item) { return(_partitionCollection.Remove(item.Partition)); }
public void Add(IPartitionWrapper item) { _partitionCollection.Add(item.Partition); }