public static long[] GetNextSequences <T>(this ISequenceSource seq, int noOfSequences) { return(GetNextSequences(seq, DynamoMetadata.GetType <T>(), noOfSequences)); }
public static void Reset <T>(this ISequenceSource seq, int startingAt = 0) { var tableName = DynamoMetadata.GetType <T>().Name; seq.Reset(tableName, startingAt); }
public static long Current <T>(this ISequenceSource seq) { var tableName = DynamoMetadata.GetType <T>().Name; return(seq.Increment(tableName, 0)); }
public static long Increment <T>(this ISequenceSource seq, int amount = 1) { var tableName = DynamoMetadata.GetType <T>().Name; return(seq.Increment(tableName, amount)); }