예제 #1
0
 public void DeleteSetAndAssociatedCards(Set set)
 {
     var setId = ExecuteScalarValueQuery<long>(setSchemaBuilder.BuildSelectQuery(new[] {nameof(Set.SetId)},
         setSchemaBuilder.CreateCondition(nameof(Set.Code), ConditionOperator.Equals, set),
         1));
     ExecuteNonQuery(setSchemaBuilder.BuildDeleteQuery(
         setSchemaBuilder.CreateCondition(nameof(Set.SetId), ConditionOperator.Equals, set)));
     ExecuteNonQuery(cardSchemaBuilder.BuildDeleteQuery(
         cardSchemaBuilder.CreateCondition(nameof(Card.Set), ConditionOperator.Equals, set)));
 }
예제 #2
0
 public void Delete(CollectedCard card)
 {
     ExecuteNonQuery(collectionSchema.BuildDeleteQuery(
                         collectionSchema.CreateCondition(nameof(CollectedCard.Id), ConditionOperator.Equals, card)));
 }