protected DeleteRelationshipCommand ( ) : |
||
return |
protected SqlCommand DeleteRelationshipCommand()
{
SqlCommand deleteNodeCommand = new SqlCommand();
deleteNodeCommand.CommandText = "DELETE FROM dbo.[Relationships] WHERE [RelationshipUid] = @RelationshipUid AND [DomainUid] = @DomainUid";
deleteNodeCommand.Connection = Connection;
deleteNodeCommand.Parameters.AddWithValue("@DomainUid", DomainId.GetValue());
deleteNodeCommand.Parameters.AddWithValue("@RelationshipUid", RelationshipId.GetValue());
return deleteNodeCommand;
}
}