Identity Insert...In Entity Framework, when you have a primary key field such as ...Id... or ...AuthorId... which is mapped to ...IDENTITY... column in the database, it works well when you insert data....In some cases, you might need to insert explicit values into a SQL Server ...IDENTITY... column....To do so, you need to enable ...IDENTITY_INSERT... before calling ...SaveChanges()... manually....Let's say we want to create a new author with explicit ...AuthorId... value....Author author = new ...