using (SmartEntities employeeverificationcontext = new SmartEntities())
{
Employee emp = (from c in employeeverificationcontext.EmployeeEntity
where c.Employee_ID == emp_detail.EmployeeID
select new Employee {c.Status}).FirstOrDefault();
emp.Status = emp_detail.Status;
int i=employeeverificationcontext.SaveChanges();
if (i > 0)
{
result = "Verification Process Completed";
}
}
错误:错误 1 无法使用集合初始化程序初始化类型“SmartWCF.Employee”,因为它没有实现“System.Collections.IEnumerable”**