I am using SQLite to test my DAO project. The reason is it provides a quick way to tell me if the model can perform a CRUD operation.
因此,有一个NUNIT项目,每个DAO进行测试,并显示失败。
然而,我遇到一个问题,即一个主要标识为配给的班级,而桌子的自动加固则转成自动加固,因此该插入不会像服务器那样失败。
这里是我用来为记忆制作方言片。
CREATE TABLE dbo.Control ([ControlNumber] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL ,[ControlDescription] TEXT NULL ,[ControlNumeric] REAL NULL ,[ControlText] TEXT NULL ,[ControlGroupKey] INTEGER NULL )
How can I get the insert to fail indicating there is an issue regarding the modelling?