Esempio n. 1
0
 private AuthorizerEventArgs()
 {
     this.UserData   = IntPtr.Zero;
     this.ActionCode = SQLiteAuthorizerActionCode.None;
     this.Argument1  = null;
     this.Argument2  = null;
     this.Database   = null;
     this.Context    = null;
     this.ReturnCode = SQLiteAuthorizerReturnCode.Ok;
 }
Esempio n. 2
0
 internal AuthorizerEventArgs(IntPtr pUserData, SQLiteAuthorizerActionCode actionCode, string argument1, string argument2, string database, string context, SQLiteAuthorizerReturnCode returnCode) : this()
 {
     this.UserData   = pUserData;
     this.ActionCode = actionCode;
     this.Argument1  = argument1;
     this.Argument2  = argument2;
     this.Database   = database;
     this.Context    = context;
     this.ReturnCode = returnCode;
 }
Esempio n. 3
0
 private void PopulateOperationMetadata()
 {
     if (this.tableName == null || !this.numberOfColumns.HasValue || !this.operationCode.HasValue || !this.indirect.HasValue)
     {
         this.CheckIterator();
         IntPtr zero = IntPtr.Zero;
         SQLiteAuthorizerActionCode sQLiteAuthorizerActionCode = SQLiteAuthorizerActionCode.None;
         int             num             = 0;
         int             num1            = 0;
         SQLiteErrorCode sQLiteErrorCode = UnsafeNativeMethods.sqlite3changeset_op(this.iterator.GetIntPtr(), ref zero, ref num1, ref sQLiteAuthorizerActionCode, ref num);
         if (sQLiteErrorCode != SQLiteErrorCode.Ok)
         {
             throw new SQLiteException(sQLiteErrorCode, "sqlite3changeset_op");
         }
         this.tableName       = SQLiteString.StringFromUtf8IntPtr(zero);
         this.numberOfColumns = new int?(num1);
         this.operationCode   = new SQLiteAuthorizerActionCode?(sQLiteAuthorizerActionCode);
         this.indirect        = new bool?(num != 0);
     }
 }