I'm returning data through web api with..
FMSEntities db = new FMSEntities();
db.Voucher_BankReceipt.Include(x => x.Status)
Where status is parent table which references other children as given in hashsets below..
public Status()
{
this.Voucher_BankPayment = new HashSet<Voucher_BankPayment>();
this.Voucher_BankReceipt = new HashSet<Voucher_BankReceipt>();
this.Voucher_CashPayment = new HashSet<Voucher_CashPayment>();
this.Voucher_CashReceipt = new HashSet<Voucher_CashReceipt>();
this.Voucher_Journal = new HashSet<Voucher_Journal>();
this.Voucher_Log = new HashSet<Voucher_Log>();
this.Voucher_Workflow = new HashSet<Voucher_Workflow>();
}
On including the parent table status, it includes all the referenced hashset objects. How can I avoid reloading of Voucher_BankReceipt & other hashset json ?