Creating the model

The model represents the data your application will work with. For more information about the model, read the “Data” section on the ASP.NET MVC site:

http://www.asp.net/mvc/overview/models-(data)

In this example we will use plain C# classes for our model. We will not persist it in storage, as that falls out of the scope of MVC documentation.

Add a new class to the Model folder and call it Feature. Implement two properties – Name and Version.

using System;
using System.Linq;
 
namespace SitefinityWebApp.Mvc.Models
{
    public class Feature
    {
        public string Name { get; set; }
        public double Version { get; set; }
    }
}

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK