Model Class: D_Coursedescription.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SnapObjects.Data;
using DWNet.Data;
using Newtonsoft.Json;
namespace Appeon.ApiDoc.Models
{
[DataWindow("d_coursedescription", DwStyle.Grid)]
[Table("CourseDescription", Schema = "dbo")]
#region DwSelectAttribute
[DwSelect("PBSELECT( VERSION(400) TABLE(NAME=\"CourseDescription\" ) @(_COLUMNS_PLACEHOLDER_) )")]
#endregion
[UpdateWhereStrategy(UpdateWhereStrategy.KeyAndConcurrencyCheckColumns)]
[DwKeyModificationStrategy(UpdateSqlStrategy.DeleteThenInsert)]
public class D_Coursedescription
{
[Key]
[DwColumn("CourseDescription", "CourseID")]
public int Courseid { get; set; }
[ConcurrencyCheck]
[DwColumn("CourseDescription", "Description")]
public string Description { get; set; }
[ConcurrencyCheck]
[DwColumn("CourseDescription", "ModifiedDate")]
public DateTime? Modifieddate { get; set; }
[ConcurrencyCheck]
[SqlDefaultValue("(newid())")]
[DwColumn("CourseDescription", "rowguid")]
public Guid Rowguid { get; set; }
[ConcurrencyCheck]
[DwColumn("CourseDescription", "Valid")]
public bool? Valid { get; set; }
[ConcurrencyCheck]
[DwColumn("CourseDescription", "InputDate")]
public DateTime? Inputdate { get; set; }
[ConcurrencyCheck]
[DwColumn("CourseDescription", "InputTime")]
public TimeSpan? Inputtime { get; set; }
}
}