public void TestReturnParameter2() { Person p = new Person(); Accessor.Insert_ReturnParameter2(p); Assert.AreEqual(12345, p.ID); }
public void TestOutputParameter() { Person p = new Person { FirstName = "Crazy", LastName = "Frog", Gender = Gender.Other }; Accessor.Insert_OutputParameter(p); Assert.IsTrue(p.ID > 0); new SprocQuery().Delete(p); }
public void Test1() { /*[a]*/SprocQuery<Person> query = new SprocQuery<Person>()/*[/a]*/; Person person = new Person(); person.FirstName = "Crazy"; person.LastName = "Frog"; person.Gender = Gender.Unknown; query./*[a]*/Insert(person)/*[/a]*/; }
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]*/; }
public void Test2() { using (DbManager db = new DbManager()) { /*[a]*/SprocQuery<Person> query = new SprocQuery<Person>()/*[/a]*/; Person person = new Person(); person.FirstName = "Crazy"; person.LastName = "Frog"; person.Gender = Gender.Other; query./*[a]*/Insert(db, person)/*[/a]*/; } }