Exemple #1
0
        public static Key WithoutBase(this IKey self)
        {
            var key = self.Clone();

            key.Base = null;
            return(key);
        }
Exemple #2
0
        public static Key WithoutVersion(this IKey self)
        {
            Key key = self.Clone();

            key.VersionId = null;
            return(key);
        }
Exemple #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);
        }
Exemple #4
0
        public static Key WithBase(this IKey self, string _base)
        {
            Key key = self.Clone();

            key.Base = _base;
            return(key);
        }
Exemple #5
0
        public static IKey WithoutResourceId(this IKey self)
        {
            var key = self.Clone();

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

            key.Base = @base;
            return(key);
        }
        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);
        }
 public static Key NextHistoryKey(this IGenerator generator, IKey key)
 {
     Key historykey = key.Clone();
     historykey.VersionId = generator.NextVersionId(key.TypeName);
     return historykey;
 }