asp.net mvc linq sql problem
问题 I am working on a project using asp.net mvc 2 and linq to sql. The problem occurs when trying to insert data into a table where the table has an identity column type of tinyint. When trying to insert the following error occurs: The primary key column of type 'TinyInt' cannot be generated by the server. Does linq to sql support tinyint datatype? Please help me 回答1: From what I have been able to gather, Linq To Sql doesn't support TinyInt for auto increment fields. Can you change the datatype