Model Class: OnlineCourse.cs
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SnapObjects.Data;
namespace Appeon.ApiDoc.Models.School
{
    /// <summary>
    /// This model class maps to the dbo.OnlineCourse table. 
    /// It uses the primary key to generate the Where clause for the Update operation.
    /// 
    /// CourseID is the primary key.
    /// </summary>
    [Table("OnlineCourse", Schema = "dbo")]
    [UpdateWhereStrategy(UpdateWhereStrategy.KeyColumns)]
    public class OnlineCourse
    {
        [Key]
        public Int32 CourseID { get; set; }
        public String URL { get; set; }
    }
}