TransactionalNodeService.DeleteRelationshipTransactionOperation.DeleteRelationshipCommand C# (CSharp) Method

DeleteRelationshipCommand() protected method

protected DeleteRelationshipCommand ( ) : SqlCommand
return System.Data.SqlClient.SqlCommand
        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;
        }
    }