Esempio n. 1
0
		internal RO0_Language(
#if !NET_1_1
			DO_Language 
#else
			DO0_Language 
#endif
			parent_ref_in
		) : base(
			parent_ref_in
		) {
			parent_ref_ = parent_ref_in;
		}
Esempio n. 2
0
		internal RO0_Language(
#if USE_PARTIAL_CLASSES && !NET_1_1
			DO_Language 
#else
			DO0_Language 
#endif
			parent_ref_in
		) : base(
			parent_ref_in
		) {
			parent_ref_ = parent_ref_in;
		}
Esempio n. 3
0
        internal RO0_Language(
#if USE_PARTIAL_CLASSES && !NET_1_1
            DO_Language
#else
            DO0_Language
#endif
            parent_ref_in
            ) : base(
                parent_ref_in
                )
        {
            parent_ref_ = parent_ref_in;
        }
Esempio n. 4
0
        internal RO0_Language(
#if !NET_1_1
            DO_Language
#else
            DO0_Language
#endif
            parent_ref_in
            ) : base(
                parent_ref_in
                )
        {
            parent_ref_ = parent_ref_in;
        }
Esempio n. 5
0
		public void UT_InsGetDelSequence() {
			DO_Language _language;
			try {
				_language = new DO_Language();
			} catch (Exception e) {
				Assert.IsTrue(false, "some error trying to instantiate DO_Language\n---\n{0}\n---", e.Message);
				return; // no need...
			}
			_language.Connection.Open();
			_language.Connection.Transaction.Begin();



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



			_language.Connection.Transaction.Rollback();
			_language.Connection.Transaction.Terminate();
			_language.Connection.Close();
			_language.Dispose(); _language = null;
		}