Exemple #1
0
 //更新一筆記錄
 public static void Update(icdtTest icdttests)
 {
     Update(new List<icdtTest>() { icdttests });
 }
Exemple #2
0
 //新增單一記錄
 public static void Create(icdtTest icdttest)
 {
     Create(new List<icdtTest>() { icdttest });
 }
		private icdtTestModel DomainToModel(icdtTest icdtTest)
		{
		  icdtTestModel viewModel = new icdtTestModel();
            viewModel = AutoMapperConfig.Mapper.Map<icdtTest, icdtTestModel>(icdtTest);

            return viewModel;
		}
Exemple #4
0
 //刪除一筆記錄
 public static void Remove(icdtTest icdttest)
 {
     Remove(new List<icdtTest>() { icdttest });
 }
		private icdtTest ModelToDomain(icdtTestModel viewModel)
		{
		    icdtTest icdtTest = new icdtTest();
            icdtTest = AutoMapperConfig.Mapper.Map<icdtTestModel, icdtTest>(viewModel);

            return icdtTest;
		}