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



			_logcode.Fields.Warning = true;
			_logcode.Fields.Error = true;
			_logcode.Fields.Code = "123";
			_logcode.Fields.Description = "123";
			long _idlogcode;
			try {
				_idlogcode = _logcode.insObject(true);
			} catch (Exception e) {
				Assert.IsTrue(false, "some error running insObject\n---\n{0}\n---", e.Message);
				return; // no need...
			}
			Assert.IsTrue(_idlogcode > 0L, "failed to retrieve identity seed (insObject)");
			_logcode.clrObject();
			bool _exists;
			try {
				_exists = _logcode.getObject(_idlogcode);
			} 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(true, _logcode.Fields.Warning, "inserted values difer those just read (insObject/getObject)");
			Assert.AreEqual(true, _logcode.Fields.Error, "inserted values difer those just read (insObject/getObject)");
			Assert.AreEqual("123", _logcode.Fields.Code, "inserted values difer those just read (insObject/getObject)");
			Assert.AreEqual("123", _logcode.Fields.Description, "inserted values difer those just read (insObject/getObject)");
			try {
				_logcode.delObject(_idlogcode);
			} catch (Exception e) {
				Assert.IsTrue(false, "some error trying to delete (delObject)\n---\n{0}\n---", e.Message);
				return; // no need...
			}



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