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