Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » Data » Downloads
 
Add your own
alternative version

ObjectDataSource In Depth

, 22 Mar 2006
An article to master the ObjectDataSource.
ObjectDataSourceInDepth_demo.zip
App_Code
App_Data
Database.mdf
Database_log.LDF
using System;

public class Product
{
	#region Fields

	protected int _id;
    protected string _name;
    protected string _description;
    protected decimal _price;

	#endregion

	#region Properties

	public int Id
    {
        get { return _id; }
        set { _id = value; }
    }

    public string Name
    {
        get { return _name; }
        set { _name = value; }
    }

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

    public decimal Price
    {
        get { return _price; }
        set { _price = value; }
	}

	#endregion

	#region Constructors

	public Product()
    {
        _id = -1;
    }

    public Product(int id, string name, string description, decimal price)
    {
        _id = id;
        _name = name;
        _description = description;
        _price = price;
	}

	#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)

Share

About the Author

Manuel Abadia
Web Developer
Spain Spain
Manuel Abadia had his MS Degree in Computer Science (Univ. Murcia, Spain)
 
He is a Freelance Software Architect/Engineer and Trainer.
 
He sells his own components in his webpage (http://www.manuelabadia.com).
 
He was the Software Architect for the MoviTAP project that won the first prize in the Microsoft and Vodafone mobile web Services contest.
 
He has done some external work in companies like Namco America Inc. and Gaelco SA.
 
He has contributed to the MAME project (http://www.mamedev.com) for some years (and continues to do so eventually).

| Advertise | Privacy | Mobile
Web03 | 2.8.140814.1 | Last Updated 22 Mar 2006
Article Copyright 2006 by Manuel Abadia
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid