示例#1
0
        public bool EnableFieldUpdateTriggers(bool enable)
        {
            bool oldValue = AreFieldUpdateTriggersEnabled();

            if (!enable)
                _flags |= SoodaObjectFlags.DisableFieldTriggers;
            else
                _flags &= ~SoodaObjectFlags.DisableFieldTriggers;
            return oldValue;
        }
示例#2
0
 internal void ResetObjectDirty()
 {
     _flags &= ~(SoodaObjectFlags.Dirty | SoodaObjectFlags.WrittenIntoDatabase);
 }
示例#3
0
 public void ForcePostCommit()
 {
     _flags |= SoodaObjectFlags.ForcePostCommit;
 }
示例#4
0
 internal void SetObjectDirty()
 {
     if (!IsObjectDirty())
     {
         EnsureFieldsInited();
         _flags |= SoodaObjectFlags.Dirty;
         GetTransaction().RegisterDirtyObject(this);
     }
     _flags &= ~SoodaObjectFlags.WrittenIntoDatabase;
 }
示例#5
0
 public void InitRawObject(SoodaTransaction tran)
 {
     _transaction = tran;
     _dataLoadedMask = 0;
     _flags = SoodaObjectFlags.InsertMode;
     _primaryKeyValue = null;
 }