Click here to Skip to main content
15,883,750 members
Articles / Programming Languages / C#

In memory data access, a methodology to simplify agile development

Rate me:
Please Sign up or sign in to vote.
4.75/5 (11 votes)
25 Nov 2008CPOL5 min read 44.4K   304   40  
An article on architecting application layers to separate concerns and, particularly, data access.
using System;
using System.Collections.Generic;
using System.Text;
using InMemoryDal.Entities;

namespace InMemoryDal.Interfaces
{
    /// method to call to instantiate objects
    public delegate Customer CustomerDataAdapterHandler(Guid id, String firstname, String lastname, String address);//-> http://www.dotnetjunkies.com/WebLog/sstewart/archive/2006/08/30/145665.aspx

    /// <summary>
    /// Data access interface
    /// </summary>
    /// <remarks>
    /// GB 28/10/2008 22.39.07
    /// </remarks>
    public interface ICustomerDAL
    {
        List<Customer> Search(Guid id, String firstname, String lastname, String address, CustomerDataAdapterHandler customerDataAdapter);
    }
}

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
Italy Italy
Software architect. At present working on C# development, with mainly Asp.net Ajax and MVC user inteface. Particularly interested in OOP, test driven, agile development.

Comments and Discussions