コード例 #1
0
        public void Int64Prop()
        {
            CheckDisposed();
            long valNew = m_ISilDataAccess.get_Int64Prop(1114, 2224);

            Assert.AreEqual(0, valNew);
            Assert.IsFalse(m_ISilDataAccess.IsDirty());

            m_ISilDataAccess.SetInt64(1114, 2224, long.MaxValue);
            valNew = m_ISilDataAccess.get_Int64Prop(1114, 2224);
            Assert.AreEqual(long.MaxValue, valNew);
            Assert.IsTrue(m_ISilDataAccess.IsDirty());

            m_ISilDataAccess.SetInt64(1114, 2224, long.MinValue);
            valNew = m_ISilDataAccess.get_Int64Prop(1114, 2224);
            Assert.AreEqual(long.MinValue, valNew);
            Assert.IsTrue(m_ISilDataAccess.IsDirty());

            CheckProp(1114, 2224, long.MinValue, CellarModuleDefns.kcptTime);
        }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="hvo"></param>
 /// <param name="tag"></param>
 /// <param name="lln"></param>
 public void SetInt64(int hvo, int tag, long lln)
 {
     VerifyUpdate(hvo, tag);
     m_sda.SetInt64(hvo, tag, lln);
 }
コード例 #3
0
 /// <summary>
 /// Change a long integer property of an object.
 /// The caller should also call PropChanged to notify interested parties,
 /// except where the change is being made to a newly created object.
 ///</summary>
 /// <param name='hvo'> </param>
 /// <param name='tag'> </param>
 /// <param name='lln'> </param>
 public virtual void SetInt64(int hvo, int tag, long lln)
 {
     m_baseSda.SetInt64(hvo, tag, lln);
 }