I am trying to save value but passing object having one extra field in EF and in database table I do not have that field my code is,
try
{
AgencyReports row = DB.AgencyReports.SingleOrDefault(p => p.Id == obj.Id);
if (row != null)
{
row.Status = state;
DB.SaveChanges();
return true;
}
}
catch (Exception ex)
{
}
AgencyReport has one extra field "Penalty" But in database it does not exsis. Is there any way to remore field from object without updating the entityframework ?
I have restriction not to change EF
hopes for your suggestion?