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.Clipboard.ClipItemListControl.<>c__DisplayClass34_0.<AddButton_Click>b__0(Object s, EventArgs e)
在 System.Windows.Window.OnClosed(EventArgs e)
在 System.Windows.Window.WmDestroy()
在 System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
在 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)