Click here to Skip to main content
15,891,184 members
Articles / Web Development / HTML

MVC Techniques with jQuery, JSON, Knockout, and C#

Rate me:
Please Sign up or sign in to vote.
4.94/5 (138 votes)
2 Jan 2012CPOL14 min read 438.8K   22.4K   415  
Developing an Order Entry application with MVC.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NorthwindDataModel
{
    public class Orders : OrderInformation
    {
	    public int OrderID { get; set; }
	    public string CustomerID { get; set; }
	    public int	EmployeeID { get; set; }
	    public DateTime	OrderDate { get; set; }
	    public DateTime	RequiredDate { get; set; }
	    public DateTime	ShippedDate { get; set; }
	    public int	ShipVia  { get; set; }
	    public double Freight { get; set; }
	    public string ShipName { get; set; }
	    public string ShipAddress { get; set; }
	    public string ShipCity { get; set; }
	    public string ShipRegion { get; set; }
	    public string ShipPostalCode { get; set; }
	    public string ShipCountry { get; set; }
    }

    public class OrderInformation
    {
        public double OrderTotal  { get; set; }
        public string OrderTotalFormatted { get; set; }
        public string ShipperName { get; set; }
        public string RequiredDateFormatted { get; set; }
    }

}

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 Joey Software Solutions
United States United States
Mark Caplin has specialized in Information Technology solutions for the past 30 years. Specializing in full life-cycle development projects for both enterprise-wide systems and Internet/Intranet based solutions.

For the past fifteen years, Mark has specialized in the Microsoft .NET framework using C# as his tool of choice. For the past four years Mark has been implementing Single Page Applications using the Angular platform.

When not coding, Mark enjoys playing tennis, listening to U2 music, watching Miami Dolphins football and watching movies in Blu-Ray technology.

In between all this, his wife of over 25 years, feeds him well with some great home cooked meals.

You can contact Mark at mark.caplin@gmail.com

...

Comments and Discussions