Exception: constraint failed NOT NULL constraint failed: ClipboardItem.SubIndex StackTrace: 在 FreeSql.Internal.CommonProvider.AdoProvider.LoggerException(IObjectPool`1 pool, PrepareCommandResult pc, Exception ex, DateTime dt, StringBuilder logtxt, Boolean isThrowException) 在 FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms) 在 FreeSql.Sqlite.Curd.SqliteInsert`1.RawExecuteIdentity() 在 FreeSql.Internal.CommonProvider.InsertProvider`1.SplitExecuteIdentity(Int32 valuesLimit, Int32 parameterLimit) 在 FreeSql.Sqlite.Curd.SqliteInsert`1.ExecuteIdentity() 在 FreeSql.DbSet`1.AddPriv(TEntity data, Boolean isCheck) 在 FreeSql.DbSet`1.Add(TEntity data) 在 FreeSql.BaseRepository`1.Insert(TEntity entity) 在 IntelliTools.Domain.MyClipboard.ClipItem.CreateAndSave(ClipItemBase item) 在 IntelliTools.View.BackgroundWindow.CollectClipItem(ClipItemBase item) 在 IntelliTools.View.BackgroundWindow.LasyOnClipboardChanged() 在 IntelliTools.View.BackgroundWindow.Timer_Tick(Object sender, EventArgs e) 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) SQLiteException: constraint failed NOT NULL constraint failed: ClipboardItem.SubIndex --ResultCode: Constraint --ErrorCode: 19 StackTrace: 在 System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt) 在 System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) 在 System.Data.SQLite.SQLiteDataReader.NextResult() 在 System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) 在 System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) 在 System.Data.SQLite.SQLiteCommand.ExecuteScalar(CommandBehavior behavior) 在 FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms)
Exception: constraint failed NOT NULL constraint failed: ClipboardItem.SubIndex StackTrace: at FreeSql.Internal.CommonProvider.AdoProvider.LoggerException(IObjectPool`1 pool, PrepareCommandResult pc, Exception ex, DateTime dt, StringBuilder logtxt, Boolean isThrowException) at FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms) at FreeSql.Sqlite.Curd.SqliteInsert`1.RawExecuteIdentity() at FreeSql.Internal.CommonProvider.InsertProvider`1.SplitExecuteIdentity(Int32 valuesLimit, Int32 parameterLimit) at FreeSql.Sqlite.Curd.SqliteInsert`1.ExecuteIdentity() at FreeSql.DbSet`1.AddPriv(TEntity data, Boolean isCheck) at FreeSql.DbSet`1.Add(TEntity data) at FreeSql.BaseRepository`1.Insert(TEntity entity) at IntelliTools.Domain.MyClipboard.ClipItem.CreateAndSave(ClipItemBase item) at IntelliTools.View.BackgroundWindow.CollectClipItem(ClipItemBase item) at IntelliTools.View.BackgroundWindow.LasyOnClipboardChanged() at IntelliTools.View.BackgroundWindow.Timer_Tick(Object sender, EventArgs e) at System.Windows.Threading.DispatcherTimer.FireTick(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) SQLiteException: constraint failed NOT NULL constraint failed: ClipboardItem.SubIndex --ResultCode: Constraint --ErrorCode: 19 StackTrace: at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt) at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt) at System.Data.SQLite.SQLiteDataReader.NextResult() at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) at System.Data.SQLite.SQLiteCommand.ExecuteScalar(CommandBehavior behavior) at FreeSql.Internal.CommonProvider.AdoProvider.ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, String cmdText, Int32 cmdTimeout, DbParameter[] cmdParms)