示例#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.");
            }
        }
示例#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.");
            }
        }
示例#3
0
 private string GetName(CollectionTableType type)
 {
     return($"{GetTablePrefix(type)}{Name.ToLowerInvariant()}");
 }
示例#4
0
 public static string GetTablePrefix(CollectionTableType type)
 {
     return($"Collection.{type}.");
 }