Click here to Skip to main content
15,892,161 members
Articles / Web Development / ASP.NET

Take MVC to the Next Level in .NET

Rate me:
Please Sign up or sign in to vote.
4.62/5 (11 votes)
30 Apr 2013GPL315 min read 73.2K   858   75  
How to quickly build reusable and flexible WPF, Silverlight, or ASP.NET applications with the powerful Xomega Framework using the best MVVM principles.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by an Xomega.Net generator.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using Xomega.Framework;
using Xomega.Framework.Properties;

namespace MyProject4.Client.Objects
{
    public partial class StoreRowObject : DataObject
    {
        #region Constants

        public const string CustomerId = "CustomerId";
        public const string Name = "Name";
        public const string SalesPersonId = "SalesPersonId";

        #endregion
        
        #region Properties

        public CustomerProperty CustomerIdProperty { get; private set; }
        public TextProperty NameProperty { get; private set; }
        public IntegerKeyProperty SalesPersonIdProperty { get; private set; }

        #endregion

        #region Construction

        protected override void Initialize()
        {
            CustomerIdProperty = new CustomerProperty(this, CustomerId);
            CustomerIdProperty.Required = true;
            NameProperty = new TextProperty(this, Name);
            NameProperty.Required = true;
            NameProperty.Size = 50;
            SalesPersonIdProperty = new IntegerKeyProperty(this, SalesPersonId);
        }

        #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 GNU General Public License (GPLv3)


Written By
Architect Xomega.Net
United States United States
Xomega Team is striving to increase productivity and development quality by utilizing Model Driven Development coupled with Code Generation and the best design practices for application development.
We provide MDD tools, code generators and frameworks for Visual Studio and .Net development.
Visit us at http://www.xomega.net
This is a Organisation

1 members

Comments and Discussions