本文介绍了我无法获得帖子上的儿童记录列表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
请帮我以下:
我有以下表格:
Hello Friends,
Please help me for below:
I Have Following Table:
public partial class Receipt
{
public Receipt()
{
this.ReceiptDetails = new HashSet<ReceiptDetail>();
}
public decimal ReceiptID { get; set; }
public System.DateTime ReceiptDate { get; set; }
public decimal BankAccountID { get; set; }
public decimal NetAmount { get; set; }
public decimal DeducationAmount { get; set; }
public decimal TotalAmount { get; set; }
public string Notes { get; set; }
public Nullable<decimal> CustomerID { get; set; }
public Nullable<decimal> UserID { get; set; }
public Nullable<System.DateTime> CreatedOn { get; set; }
public Nullable<decimal> CreatedBy { get; set; }
public Nullable<System.DateTime> UpdatedOn { get; set; }
public Nullable<decimal> UpdatedBy { get; set; }
public Nullable<decimal> DeletedBy { get; set; }
public Nullable<System.DateTime> DeletedOn { get; set; }
public string IPAddress { get; set; }
public Nullable<bool> IsActive { get; set; }
public virtual ICollection<ReceiptDetail> ReceiptDetails { get; set; }
}
收据子女表:
Child of Receipt Table:
public partial class ReceiptDetail
{
public ReceiptDetail()
{
this.ReceiptDetailPriorDeductions = new HashSet<ReceiptDetailPriorDeduction>();
}
public decimal DetailID { get; set; }
public decimal ReceiptID { get; set; }
public Nullable<decimal> BankID { get; set; }
public string BankBranch { get; set; }
public Nullable<int> ChequeNo { get; set; }
public Nullable<System.DateTime> ChequeDate { get; set; }
public Nullable<decimal> Amount { get; set; }
public Nullable<decimal> InflowAccountID { get; set; }
public Nullable<decimal> InstrumentID { get; set; }
public Nullable<decimal> PlanEntry { get; set; }
public Nullable<decimal> TaxSectionID { get; set; }
public Nullable<decimal> PriorDiduction { get; set; }
public virtual ICollection<ReceiptDetailPriorDeduction> ReceiptDetailPriorDeductions { get; set; }
public virtual Receipt Receipt { get; set; }
}
public partial class ReceiptDetailPriorDeduction
{
public decimal ID { get; set; }
public decimal DetailID { get; set; }
public Nullable<decimal> DeductionGroupID { get; set; }
public Nullable<decimal> Amount { get; set; }
public string Description { get; set; }
public virtual ReceiptDetail ReceiptDetail { get; set; }
}
我有两个部分视图,第一个用于receiptdetail,第二个用于ReceiptDetailPriorDeductions。
i我正在使用begincollectionitem html助手。
当我点击提交按钮时我得到了receivedetail列表但我没有得到receiptdetail的孩子。
I have two partial view for that first for receiptdetail and second for ReceiptDetailPriorDeductions.
i am using begincollectionitem html helper for it.
when i click on submit button i get list of receiptdetail but i does not get child of receiptdetail.
推荐答案
这篇关于我无法获得帖子上的儿童记录列表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!