It looks like your Linq to SQL classes are not in sync with your database. You need to update them. If you are using the built-in visual studio designer, delete the table from your DBML and then add it again.
Attributes for primary key columns must have attributes that look like this:
[Column(Storage="_TeacherID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
source share