public PaymentsTableConfig() { _tableName = "Payments"; _hashKey = new KeyDetails() { AttributeType = ScalarAttributeType.S, ColumnName = "Identifier" }; _rangeKey = null; }
public KeyComparer <T> GetKeyComparer <T>() { if (KeysStore.TryGetValue(typeof(T), out KeyDetails key)) { if (key.KeyComparer == null) { var comparer = new KeyComparer <T>(GetKeys <T>()); var newKey = new KeyDetails(key, comparer); KeysStore.TryUpdate(typeof(T), newKey, key); return(comparer); } return(key.KeyComparer as KeyComparer <T>); } return(null); }