Click here to Skip to main content
15,893,190 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 97K   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 OrderItem : BusinessObject
    {
        
        #region Properties
        public virtual Guid? ComputerPartID
        {
            get
            {
                return ((Guid?)(base.GetPropertyValue("ComputerPartID")));
            }
            set
            {
                base.SetPropertyValue("ComputerPartID", value);
            }
        }
        
        public virtual Guid? OrderItemID
        {
            get
            {
                return ((Guid?)(base.GetPropertyValue("OrderItemID")));
            }
            set
            {
                base.SetPropertyValue("OrderItemID", value);
            }
        }
        
        public virtual Guid? PartsOrderID
        {
            get
            {
                return ((Guid?)(base.GetPropertyValue("PartsOrderID")));
            }
            set
            {
                base.SetPropertyValue("PartsOrderID", value);
            }
        }
        
        public virtual Int32? Quantity
        {
            get
            {
                return ((Int32?)(base.GetPropertyValue("Quantity")));
            }
            set
            {
                base.SetPropertyValue("Quantity", value);
            }
        }
        #endregion
        
        #region Relationships
        public virtual ComputerPart ComputerPart
        {
            get
            {
                return Relationships.GetRelatedObject<ComputerPart>("ComputerPart");
            }
            set
            {
                Relationships.SetRelatedObject("ComputerPart", value);
            }
        }
        
        public virtual PartsOrder PartsOrder
        {
            get
            {
                return Relationships.GetRelatedObject<PartsOrder>("PartsOrder");
            }
            set
            {
                Relationships.SetRelatedObject("PartsOrder", 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 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