MVC4 Mobile Classic
Step 2 of 4: Add a Model

Add the following code to create your application Model.

  1. Right-click the Models folder in the Solution Explorer and choose Add | Class.
  2. Name the class TahDoList.cs and click Add.
  3. Ensure that you've referenced the following namespaces. If you don't have some of the namespaces referenced, then add them at the top of your page.

    C#

  4. Add the following stored procedures:

    C#

  5. Rebuild your application. This will allow the Scaffolding to inspect our Object Model.

In the next step, you'll add a  Controller to your project.

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback