Click here to Skip to main content
15,896,348 members
Articles / Desktop Programming / Windows Forms

Create One Application for both Desktop and Web

Rate me:
Please Sign up or sign in to vote.
4.37/5 (30 votes)
29 Oct 2008CPOL5 min read 97.1K   3.9K   170  
With Habanero's support for Visual WebGui, you can write one application to release on either the desktop or web.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1433
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// ------------------------------------------------------------------------------
// This partial class was auto-generated for use with the Habanero Architecture.
// NB Custom code should be placed in the provided stub class.
// Please do not modify this class directly!
// ------------------------------------------------------------------------------

namespace Replace_it.BO
{
    using System;
    using Habanero.BO;
    using Replace_it.BO;
    
    
    public partial class ComputerPart : BusinessObject
    {
        
        #region Properties
        public virtual Guid? ComputerPartID
        {
            get
            {
                return ((Guid?)(base.GetPropertyValue("ComputerPartID")));
            }
            set
            {
                base.SetPropertyValue("ComputerPartID", value);
            }
        }
        
        public virtual Guid? ComputerPartTypeID
        {
            get
            {
                return ((Guid?)(base.GetPropertyValue("ComputerPartTypeID")));
            }
            set
            {
                base.SetPropertyValue("ComputerPartTypeID", value);
            }
        }
        
        public virtual Decimal? Cost
        {
            get
            {
                return ((Decimal?)(base.GetPropertyValue("Cost")));
            }
            set
            {
                base.SetPropertyValue("Cost", value);
            }
        }
        
        public virtual String Description
        {
            get
            {
                return ((String)(base.GetPropertyValue("Description")));
            }
            set
            {
                base.SetPropertyValue("Description", value);
            }
        }
        
        public virtual String PartCode
        {
            get
            {
                return ((String)(base.GetPropertyValue("PartCode")));
            }
            set
            {
                base.SetPropertyValue("PartCode", value);
            }
        }
        
        public virtual Decimal? Price
        {
            get
            {
                return ((Decimal?)(base.GetPropertyValue("Price")));
            }
            set
            {
                base.SetPropertyValue("Price", value);
            }
        }
        
        public virtual Int32? Stock
        {
            get
            {
                return ((Int32?)(base.GetPropertyValue("Stock")));
            }
            set
            {
                base.SetPropertyValue("Stock", value);
            }
        }
        #endregion
        
        #region Relationships
        public virtual ComputerPartType ComputerPartType
        {
            get
            {
                return Relationships.GetRelatedObject<ComputerPartType>("ComputerPartType");
            }
            set
            {
                Relationships.SetRelatedObject("ComputerPartType", value);
            }
        }
        
        public virtual BusinessObjectCollection<OrderItem> OrderItems
        {
            get
            {
                return Relationships.GetRelatedCollection<OrderItem>("OrderItems");
            }
        }
        #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 Chillisoft
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions