public void Test()
		{
			SqlQuery<Person> query = new SqlQuery<Person>();

			Person person = query./*[a]*/SelectByKey("Tester", "Testerson")/*[/a]*/;

			Assert.IsNotNull(person);
		}
Exemple #2
0
		public void Test1()
		{
			SqlQuery<MyPersonObject> query = new SqlQuery<MyPersonObject>();

			MyPersonObject person = query./*[a]*/SelectByKey(1)/*[/a]*/;

			Assert.IsNotNull(person);
		}
Exemple #3
0
		public void Test()
		{
			SqlQuery<Person> da = new SqlQuery<Person>();

			Person person = da./*[a]*/SelectByKey(1)/*[/a]*/;

			Assert.IsNotNull(person);
		}
Exemple #4
0
		public void Test1()
		{
			int id = Insert();

			/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

			query./*[a]*/DeleteByKey(id)/*[/a]*/;
		}
		public void Test1()
		{
			SqlQuery<Person> query = new SqlQuery<Person>/*[a]*/()/*[/a]*/;

			Person person = query.SelectByKey(1);

			Assert.IsNotNull(person);
		}
		public void Test2()
		{
			using (DbManager db = new DbManager())
			{
				/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

				List<Person> list = query./*[a]*/SelectAll(db)/*[/a]*/;
			}
		}
Exemple #7
0
		public void Test1()
		{
			/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

			Person person = query.SelectByKey(_id);

			person.Gender = Gender.Other;

			query./*[a]*/Update(person)/*[/a]*/;
		}
		public void Test()
		{
			SqlQuery<MyPersonObject> query = new SqlQuery<MyPersonObject>();

			/*[a]*/query.Extensions = TypeExtension.GetExtensions("XmlExtension.xml")/*[/a]*/;

			MyPersonObject person = query.SelectByKey(1);

			Assert.IsNotNull(person);
		}
		public void Test3()
		{
			using (DbManager db = new DbManager())
			{
				SqlQuery<Person> query = new SqlQuery<Person>/*[a]*/()/*[/a]*/;

				Person person = query.SelectByKey(/*[a]*/db/*[/a]*/, 1);

				Assert.IsNotNull(person);
			}
		}
		public void Test2()
		{
			using (DbManager db = new DbManager())
			{
				/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

				Person person = query./*[a]*/SelectByKey(db, 1)/*[/a]*/;

				Assert.IsNotNull(person);
			}
		}
Exemple #11
0
		public void Test()
		{
			SqlQuery<Person> query = new SqlQuery<Person>();

			Person person = new Person();

			person.FirstName = "Crazy";
			person.LastName  = "Frog";
			person.Gender    = Gender.Other;

			query./*[a]*/Insert(person)/*[/a]*/;
		}
Exemple #12
0
		public void Test1()
		{
			/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

			Person person = new Person();

			person.FirstName = "Crazy";
			person.LastName  = "Frog";
			person.Gender    = Gender.Unknown;

			query./*[a]*/Insert(person)/*[/a]*/;
		}
Exemple #13
0
		public void Test2()
		{
			int id = Insert();

			using (DbManager db = new DbManager())
			{
				/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

				Person person = query.SelectByKey(db, id);

				query./*[a]*/Delete(db, person)/*[/a]*/;
			}
		}
Exemple #14
0
		public void Test2()
		{
			using (DbManager db = new DbManager())
			{
				/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

				Person person = query.SelectByKey(db, _id);

				person.Gender = Gender.Other;

				query./*[a]*/Update(db, person)/*[/a]*/;
			}
		}
Exemple #15
0
		public void Test2()
		{
			using (DbManager db = new DbManager())
			{
				/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

				Person person = new Person();

				person.FirstName = "Crazy";
				person.LastName  = "Frog";
				person.Gender    = Gender.Other;

				query./*[a]*/Insert(db, person)/*[/a]*/;
			}
		}
Exemple #16
0
		public void Test1()
		{
			/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

			List<Person> list = query./*[a]*/SelectAll()/*[/a]*/;
		}