Model Class: D_Department_With_Report.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;
using System.Collections;
namespace Appeon.ApiDoc.Models
{
[DataWindow("d_department_with_report", DwStyle.Default)]
[Table("Department")]
#region DwSelectAttribute
[DwSelect("PBSELECT( VERSION(400) TABLE(NAME=\"Department\" ) @(_COLUMNS_PLACEHOLDER_) )")]
#endregion
[DwSort("departmentid A")]
[DwKeyModificationStrategy(UpdateSqlStrategy.DeleteThenInsert)]
[UpdateWhereStrategy(UpdateWhereStrategy.KeyAndConcurrencyCheckColumns)]
public class D_Department_With_Report
{
[Key]
[DwColumn("Department", "DepartmentID")]
public int Departmentid { get; set; }
[ConcurrencyCheck]
[StringLength(50)]
[DwColumn("Department", "Name")]
public string Name { get; set; }
[JsonIgnore]
[DwReport(typeof(D_Course_With_Param), ParamValues = "departmentid")]
public IList<D_Course_With_Param> Dw_1 { get; set; }
}
}