public string GetTableName(CollectionTableType type) { switch (type) { case CollectionTableType.Documents: return(_documents); case CollectionTableType.Tombstones: return(_tombstones); case CollectionTableType.Revisions: return(_revisions); #pragma warning disable 618 case CollectionTableType.Counters: #pragma warning restore 618 return(_counters); case CollectionTableType.CounterGroups: return(_counterGroups); default: throw new NotSupportedException($"Collection table type '{type}' is not supported."); } }
public string GetTableName(CollectionTableType type) { switch (type) { case CollectionTableType.Documents: return(_documents); case CollectionTableType.Tombstones: return(_tombstones); default: throw new NotSupportedException($"Collection table type '{type}' is not supported."); } }
private string GetName(CollectionTableType type) { return($"{GetTablePrefix(type)}{Name.ToLowerInvariant()}"); }
public static string GetTablePrefix(CollectionTableType type) { return($"Collection.{type}."); }