Пример #1
0
		internal RO0_Log(
#if USE_PARTIAL_CLASSES && !NET_1_1
			DO_Log 
#else
			DO0_Log 
#endif
			parent_ref_in
		) : base(
			parent_ref_in
		) {
			parent_ref_ = parent_ref_in;
		}
Пример #2
0
		internal RO0_Log(
#if !NET_1_1
			DO_Log 
#else
			DO0_Log 
#endif
			parent_ref_in
		) : base(
			parent_ref_in
		) {
			parent_ref_ = parent_ref_in;
		}
Пример #3
0
		public void UT_InsGetDelSequence() {
			DO_Log _log;
			try {
				_log = new DO_Log();
			} catch (Exception e) {
				Assert.IsTrue(false, "some error trying to instantiate DO_Log\n---\n{0}\n---", e.Message);
				return; // no need...
			}
			_log.Connection.Open();
			_log.Connection.Transaction.Begin();



			_log.Fields.IDLogcode = 123L;
			_log.Fields.IDUser_posted = 123L;
			_log.Fields.Date_posted = new DateTime(2341, 12, 12);
			_log.Fields.Logdata = "123";
			long _idlog;
			try {
				_idlog = _log.insObject(true);
			} catch (Exception e) {
				Assert.IsTrue(false, "some error running insObject\n---\n{0}\n---", e.Message);
				return; // no need...
			}
			Assert.IsTrue(_idlog > 0L, "failed to retrieve identity seed (insObject)");
			_log.clrObject();
			bool _exists;
			try {
				_exists = _log.getObject(_idlog);
			} catch (Exception e) {
				Assert.IsTrue(false, "some error running getObject\n---\n{0}\n---", e.Message);
				return; // no need...
			}
			Assert.IsTrue(_exists, "can't read inserted item (getObject)");
			Assert.AreEqual(123L, _log.Fields.IDLogcode, "inserted values difer those just read (insObject/getObject)");
			Assert.AreEqual(123L, _log.Fields.IDUser_posted, "inserted values difer those just read (insObject/getObject)");
			Assert.AreEqual(new DateTime(2341, 12, 12), _log.Fields.Date_posted, "inserted values difer those just read (insObject/getObject)");
			Assert.AreEqual("123", _log.Fields.Logdata, "inserted values difer those just read (insObject/getObject)");
			try {
				_log.delObject(_idlog);
			} catch (Exception e) {
				Assert.IsTrue(false, "some error trying to delete (delObject)\n---\n{0}\n---", e.Message);
				return; // no need...
			}



			_log.Connection.Transaction.Rollback();
			_log.Connection.Transaction.Terminate();
			_log.Connection.Close();
			_log.Dispose(); _log = null;
		}
Пример #4
0
        internal RO0_Log(
#if USE_PARTIAL_CLASSES && !NET_1_1
            DO_Log
#else
            DO0_Log
#endif
            parent_ref_in
            ) : base(
                parent_ref_in
                )
        {
            parent_ref_ = parent_ref_in;
        }
Пример #5
0
        internal RO0_Log(
#if !NET_1_1
            DO_Log
#else
            DO0_Log
#endif
            parent_ref_in
            ) : base(
                parent_ref_in
                )
        {
            parent_ref_ = parent_ref_in;
        }