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

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

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

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

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

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

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

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

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

			Person person = query.SelectByKey(1);

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

				List<Person> list = query./*[a]*/SelectAll(db)/*[/a]*/;
			}
		}
Example #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]*/;
		}
Example #8
0
		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);
		}
Example #9
0
		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);
			}
		}
Example #10
0
		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);
			}
		}
Example #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]*/;
		}
Example #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]*/;
		}
Example #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]*/;
			}
		}
Example #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]*/;
			}
		}
Example #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]*/;
			}
		}
Example #16
0
		public void Test1()
		{
			/*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;

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