Exemplo n.º 1
0
        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.");
            }
        }
Exemplo n.º 2
0
        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.");
            }
        }
Exemplo n.º 3
0
 private string GetName(CollectionTableType type)
 {
     return($"{GetTablePrefix(type)}{Name.ToLowerInvariant()}");
 }
Exemplo n.º 4
0
 public static string GetTablePrefix(CollectionTableType type)
 {
     return($"Collection.{type}.");
 }