Click here to Skip to main content
15,879,535 members
Articles / Operating Systems / Windows

ADO.NET for the Object-Oriented Programmer – Part One

Rate me:
Please Sign up or sign in to vote.
4.68/5 (100 votes)
19 Jan 2006CPOL16 min read 401.2K   3.3K   286  
This article will show how to accomplish these goals—use ADO.NET as a thin data transport layer, while still taking advantage of the data-binding capabilities of .NET user interface controls. As it turns out, it’s pretty easy.
using System;
using System.Collections.Generic;
using System.Text;

namespace AdoNetDemo
{
    public class StepItem
    {
    	#region Declarations

        // Property variables
        private DateTime p_Date = DateTime.Now;
        private string p_Description = String.Empty;
        private int p_ID = -1;

   	    #endregion

    	#region Properties

        public string Description
        {
            get { return p_Description; }
            set { p_Description = value; }
        }

        public DateTime Date
        {
            get { return p_Date; }
            set { p_Date = value; }
        }

        public int ID
        {
            get { return p_ID; }
            set { p_ID = value; }
        }

    	#endregion
    }
}

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) Foresight Systems
United States United States
David Veeneman is a financial planner and software developer. He is the author of "The Fortune in Your Future" (McGraw-Hill 1998). His company, Foresight Systems, develops planning and financial software.

Comments and Discussions