Click here to Skip to main content
15,894,017 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 EncodeFirst.TestService.BusinessObjects.Types.Filters;
using EncodeFirst.TestService.BusinessObjects.Types.DataModel;

namespace EncodeFirst.TestService.BusinessObjects.Contracts
{
    public interface ITerminalRepository
    {
        /// <summary>
        /// Gets the terminal by code.
        /// </summary>
        /// <param name="code">The code of the terminal.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        Terminal GetTerminalByCode(string code);

        /// <summary>
        /// Gets the Terminals list.
        /// </summary>
        /// <returns></returns>
        /// <remarks></remarks>
        Terminal[] GetTerminalsList();

        /// <summary>
        /// Gets the terminals list by merchant code.
        /// </summary>
        /// <param name="merchantCode">The merchant code.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        Terminal[] GetTerminalsListByMerchantCode(string merchantCode);

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

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

        /// <summary>
        /// Deletes the specified Terminal Id.
        /// </summary>
        /// <param name="TerminalId">The Terminal Id.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        bool Delete(long terminalId);
    }
}

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