This project is read-only.
3
Vote

Cannot implicitly convert type 'System.Data.EntityState' to 'System.Data.Entity.EntityState'.

description

when using Scaffolding Controller <xxx> -Repository

generated
public void InsertOrUpdate(Entity entity)

has error
Cannot implicitly convert type 'System.Data.EntityState' to 'System.Data.Entity.EntityState'.
at line
context.Entry(entity).State = EntityState.Modified;

comments