A specified Include path is not valid. The EntityType does not declare a navigation property with the name *
Controller
public ActionResult BBDetail(DateTime? start, DateTime? end)
{
var list = new List<ProbaleMV>();
var tblprobales = DB.Probales.Include(t => t.Section).Include(t => t.Catagory).Include(t => t.ItemMasterFile);
foreach (var bigbale in tblprobales)
{
var bb = new ProbaleMV();
var itemname = DB.ItemMasterFiles.Find(bigbale.Codeitem);
bb.Descriptionitem = itemname.Descriptionitem;
var secname = DB.Sections.Find(bigbale.SecID);
bb.Secnam = secname.Secnam;
bb.EntryDate = bigbale.EntryDate;
list.Add(bb);
}
return View(list);
}
public partial class Probale
{
[Key]
public int Prdno { get; set; }
public Nullable<int> OrderNo { get; set; }
public Nullable<int> Codeitem { get; set; }
public Nullable<int> prdqty { get; set; }
public Nullable<System.DateTime> EntryDate { get; set; }
public Nullable<int> Weigth { get; set; }
public Nullable<int> IDwokrer { get; set; }
public Nullable<System.DateTime> Udate { get; set; }
public Nullable<int> FID { get; set; }
public Nullable<int> DelID { get; set; }
public Nullable<System.DateTime> ddate { get; set; }
public Nullable<int> Customerid { get; set; }
public Nullable<int> AdID { get; set; }
public string Pbsize { get; set; }
public Nullable<int> SecID { get; set; }
public Nullable<int> EmpID { get; set; }
public Nullable<System.TimeSpan> ETime { get; set; }
public Nullable<System.TimeSpan> DTime { get; set; }
public string BaleSize { get; set; }
public string IPAddress { get; set; }
public string scn_Status { get; set; }
public Nullable<System.DateTime> scn_date { get; set; }
public Nullable<System.TimeSpan> scn_time { get; set; }
public Nullable<int> scn_order_no { get; set; }
public string Scn_Mach { get; set; }
public Nullable<System.DateTime> Mach_Date { get; set; }
public Nullable<System.TimeSpan> Mach_Time { get; set; }
public Nullable<int> PID { get; set; }
public Nullable<int> CID { get; set; }
public Nullable<int> M_No { get; set; }
public Nullable<int> Cat_ID { get; set; }
public virtual Section Section { get; set; }
public virtual Catagory Catagory { get; set; }
public virtual ItemMasterFile ItemMasterFile { get; set; }
}