Click here to Skip to main content
15,884,353 members
Articles / Programming Languages / SQL

Abstract Data Access Layer Design

Rate me:
Please Sign up or sign in to vote.
4.85/5 (16 votes)
5 Sep 2009CPOL4 min read 72.9K   1.2K   68  
The present document tries to describe the architecture of a specific layer of access to data for relational databases. This document tries to present/display a form to automate tasks of access to data.
using System;
using System.Collections.Generic;
using System.Text;

namespace XPeriment.DataAccessTasks
{
    public class JoinData
    {
        private string jointype = "INNER";
        private string targettable = "";
        private string condition = "";
        
        public string JoinType
        {
            get
            {
                return jointype;
            }
            set
            {
                jointype = value;
            }
        }

        public string TargetTable
        {
            get
            {
                return targettable;
            }
            set
            {
                targettable = value;
            }
        }

        public string Condition
        {
            get
            {
                return condition;
            }
        }

        public JoinData(string joinType, string tableToJoin, string joinCondition)
        {
            jointype = joinType;
            targettable = tableToJoin;
            condition = joinCondition;
        }

        public JoinData(string tableToJoin, string joinCondition)
        {
            targettable = tableToJoin;
            condition = joinCondition;
        }

    }
}

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
Systems Engineer
Colombia Colombia
http://www.construirsoftware.blogspot.com/

Comments and Discussions