Пример #1
0
        public static Key WithoutBase(this IKey self)
        {
            var key = self.Clone();

            key.Base = null;
            return(key);
        }
Пример #2
0
        public static Key WithoutVersion(this IKey self)
        {
            Key key = self.Clone();

            key.VersionId = null;
            return(key);
        }
Пример #3
0
        public static Key NextHistoryKey(this IGenerator generator, IKey key)
        {
            Key historykey = key.Clone();

            historykey.VersionId = generator.NextVersionId(key.TypeName, key.ResourceId);
            return(historykey);
        }
Пример #4
0
        public static Key WithBase(this IKey self, string _base)
        {
            Key key = self.Clone();

            key.Base = _base;
            return(key);
        }
Пример #5
0
        public static IKey WithoutResourceId(this IKey self)
        {
            var key = self.Clone();

            key.ResourceId = null;
            return(key);
        }
Пример #6
0
        public static Key WithBase(this IKey self, string @base)
        {
            var key = self.Clone();

            key.Base = @base;
            return(key);
        }
Пример #7
0
        public static async Task <Key> NextHistoryKey(this IGenerator generator, IKey key)
        {
            var historykey = key.Clone();

            historykey.VersionId = await generator.NextVersionId(key.TypeName, key.ResourceId).ConfigureAwait(false);

            return(historykey);
        }
Пример #8
0
 public static Key NextHistoryKey(this IGenerator generator, IKey key)
 {
     Key historykey = key.Clone();
     historykey.VersionId = generator.NextVersionId(key.TypeName);
     return historykey;
 }