public static Key WithoutBase(this IKey self) { var key = self.Clone(); key.Base = null; return(key); }
public static Key WithoutVersion(this IKey self) { Key key = self.Clone(); key.VersionId = null; return(key); }
public static Key NextHistoryKey(this IGenerator generator, IKey key) { Key historykey = key.Clone(); historykey.VersionId = generator.NextVersionId(key.TypeName, key.ResourceId); return(historykey); }
public static Key WithBase(this IKey self, string _base) { Key key = self.Clone(); key.Base = _base; return(key); }
public static IKey WithoutResourceId(this IKey self) { var key = self.Clone(); key.ResourceId = null; return(key); }
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; }