public void ObjectProp() { CheckDisposed(); int hvo = m_ISilDataAccess.get_ObjectProp(1000, 2000); Assert.AreEqual(0, hvo); Assert.IsFalse(m_ISilDataAccess.IsDirty()); m_ISilDataAccess.SetObjProp(1000, 2000, 7777); hvo = m_ISilDataAccess.get_ObjectProp(1000, 2000); Assert.AreEqual(7777, hvo); Assert.IsTrue(m_ISilDataAccess.IsDirty()); m_ISilDataAccess.SetObjProp(1000, 2000, 8888); hvo = m_ISilDataAccess.get_ObjectProp(1000, 2000); Assert.AreEqual(8888, hvo); Assert.IsTrue(m_ISilDataAccess.IsDirty()); CheckProp(1000, 2000, 8888, CellarModuleDefns.kcptOwningAtom); }
/// <summary> /// /// </summary> /// <returns></returns> public bool IsDirty() { return(m_sda.IsDirty()); }
/// <summary> /// A method that indicates if the cache has changed since it was first loaded by means /// of Set methods. Basically what this means is that client code has called one /// of the property modification methods (eg. "Set" methods, NewObject, DeleteObject, /// MoveOwnSeq, or Replace methods). /// ENHANCE JohnT: It would be nice to have /// a way to retrieve information about what changed. ///</summary> /// <returns></returns> public virtual bool IsDirty() { return(m_baseSda.IsDirty()); }