Click here to Skip to main content
15,893,381 members
Articles / Programming Languages / C# 4.0

INCLUDE in classic ADO.NET

Rate me:
Please Sign up or sign in to vote.
4.91/5 (4 votes)
5 Jul 2012CPOL3 min read 21.4K   641   12  
Implementing and using an INCLUDE method in classic ADO.NET.
using System;

using EncodeFirst.TestService.BusinessObjects.Types.Filters;
using EncodeFirst.TestService.BusinessObjects.Types.DataModel;

namespace EncodeFirst.TestService.BusinessObjects.Contracts
{
    public interface ITransactionRepository
    {
        /// <summary>
        /// Gets the transaction.
        /// </summary>
        /// <param name="id">The transaction id.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        Transaction GetTransaction(long id);

        /// <summary>
        /// Gets the transactions list by reference id.
        /// </summary>
        /// <param name="referenceId">The reference id.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        Transaction[] GetTransactionsListByReferenceId(long referenceId);

        /// <summary>
        /// Gets the transactions list by merchant id.
        /// </summary>
        /// <param name="merchantId">The merchant id.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        Transaction[] GetTransactionsListByMerchantId(long merchantId);

        /// <summary>
        /// Gets the approved transactions list by.
        /// </summary>
        /// <param name="merchantId">The merchant id.</param>
        /// <param name="type">The transaction type.</param>
        /// <param name="fromDate">From date.</param>
        /// <param name="toDate">To date.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        Transaction[] GetApprovedTransactionsListBy(long merchantId, Transaction.TransactionType? type, DateTime? dateFrom, DateTime? dateTo);

        /// <summary>
        /// Gets the disapproved transactions list by.
        /// </summary>
        /// <param name="merchantId">The merchant id.</param>
        /// <param name="type">The transaction type.</param>
        /// <param name="fromDate">From date.</param>
        /// <param name="toDate">To date.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        Transaction[] GetDisapprovedTransactionsListBy(long merchantId, Transaction.TransactionType? type, DateTime? dateFrom, DateTime? dateTo);

        /// <summary>
        /// Inserts the specified Transaction.
        /// </summary>
        /// <param name="Transaction">The Transaction.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        bool Insert(Transaction Transaction);

        /// <summary>
        /// Updates the specified Transaction.
        /// </summary>
        /// <param name="Transaction">The Transaction.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        bool Update(Transaction Transaction);
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions