System.Data.SqlClient.SqlException (0x80131904)

System.Data.SqlClient.SqlException (0x80131904): Introducing FOREIGN KEY constraint 'FK_DataTable_PartDevice_Barcode_DeviceID' on table 'DataTable' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
 

将                        onDelete: ReferentialAction.Cascade);
 改成                       onDelete: ReferentialAction.Restrict);
 

http://www.it1352.com/274770.html

 

你可能感兴趣的:(EF)