protected bool Equals(DynamoId other) { return(Equals(Hash, other.Hash) && Equals(Range, other.Range)); }
public T DeleteItem <T>(DynamoId id, ReturnItem returnItem = ReturnItem.None) { return(id.Range != null ? DeleteItem <T>(id.Hash, id.Range, returnItem) : DeleteItem <T>(id.Hash, returnItem)); }
public virtual Dictionary <string, AttributeValue> ToAttributeKeyValue(IPocoDynamo db, DynamoMetadataType table, DynamoId id) { using (AwsClientUtils.GetJsScope()) { return(new Dictionary <string, AttributeValue> { { table.HashKey.Name, ToAttributeValue(db, table.HashKey.Type, table.HashKey.DbType, id.Hash) }, { table.RangeKey.Name, ToAttributeValue(db, table.RangeKey.Type, table.RangeKey.DbType, id.Range) }, }); } }
public T GetItem <T>(DynamoId id) { return(id.Range != null ? GetItem <T>(id.Hash, id.Range) : GetItem <T>(id.Hash)); }
public static T GetItem <T>(this IPocoDynamo db, DynamoId id) { return(db.GetItem <T>(id.Hash, id.Range)); }