public void TestMethod4() { SourceWebDAL dal = new SourceWebDAL(); SourceWeb web = new SourceWeb {Id=1,CreateDate = DateTime.Now, CreateBy = 1, Web = "test222", URL = "www.testtest.com", IsDelete = true }; int result = dal.Update(web); Console.WriteLine(result); }
public void TestMethod5() { SourceWebDAL dal = new SourceWebDAL(); SourceWeb web = dal.GetEntity(1); Console.WriteLine(web.Web); }
public void TestMethod3() { SourceWebDAL dal = new SourceWebDAL(); //SourceWeb web = new SourceWeb { CreateDate = DateTime.Now, CreateBy = 1, Web = "test", URL = "www.test.com", IsDelete = false }; int result = dal.Delete(3); Console.WriteLine(result); }
public void TestMethod6() { SourceWebDAL dal = new SourceWebDAL(); List<SourceWeb> webs = dal.GetList("").ToList(); foreach (var item in webs) { Console.WriteLine(item.Web); } }
public void TestMethod6() { SourceWebDAL dal = new SourceWebDAL(); List <SourceWeb> webs = dal.GetList("").ToList(); foreach (var item in webs) { Console.WriteLine(item.Web); } }
public void TestMethod4() { SourceWebDAL dal = new SourceWebDAL(); SourceWeb web = new SourceWeb { Id = 1, CreateDate = DateTime.Now, CreateBy = 1, Web = "test222", URL = "www.testtest.com", IsDelete = true }; int result = dal.Update(web); Console.WriteLine(result); }