Model Class: D_Department2.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_department2", DwStyle.Grid)]
[Table("Department", Schema = "dbo")]
#region DwSelectAttribute
[DwSelect("PBSELECT( VERSION(400) TABLE(NAME=\"Department\" ) @(_COLUMNS_PLACEHOLDER_) )")]
#endregion
public class D_Department2
{
[DwColumn("Department", "Name")]
public string Name { get; set; }
[DwColumn("Department", "Budget")]
public decimal Budget { get; set; }
[DwColumn("Department", "StartDate")]
public DateTime Startdate { get; set; }
[DwColumn("Department", "Administrator")]
public int? Administrator { get; set; }
}
}