本文整理汇总了C#中BaseService.SaveData方法的典型用法代码示例。如果您正苦于以下问题:C# BaseService.SaveData方法的具体用法?C# BaseService.SaveData怎么用?C# BaseService.SaveData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseService
的用法示例。
在下文中一共展示了BaseService.SaveData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Post
public Sys_ConfigDBModel Post(Sys_ConfigDBModel model)
{
Dictionary<object, object> dic = new Dictionary<object, object>();
//SERVER1
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.SERVERNAME.ToString() , model.Att_ServerName1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.USERID.ToString() , model.Att_UserID1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.PASSWORD.ToString() , model.Att_Password1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.DBNAME.ToString(), model.Att_DBName1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.TABLENAME.ToString() , model.Att_TableName1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.CARDCOLNAME.ToString() , model.Att_CardColName1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.DATACOLNAME.ToString(), model.Att_DataColName1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.MACHINECODE.ToString() , model.Att_SerialNumber1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.TYPE.ToString() , model.Att_In_Out1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.FILTERDATA.ToString() , model.Att_FilterData1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.FILTERDATASPLIT.ToString() , model.Att_FilterDataSplit1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.ISCODEEMP.ToString() , model.Att_IsCodeEmp1);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_1_.ToString() + AppConfig.ISACTIVATED.ToString(), model.Att_IsActive1.ToString());
//SERVER2
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.SERVERNAME.ToString() , model.Att_ServerName2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.USERID.ToString() , model.Att_UserID2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.PASSWORD.ToString() , model.Att_Password2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.DBNAME.ToString(), model.Att_DBName2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.TABLENAME.ToString() , model.Att_TableName2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.CARDCOLNAME.ToString() , model.Att_CardColName2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.DATACOLNAME.ToString(), model.Att_DataColName2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.MACHINECODE.ToString() , model.Att_SerialNumber2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.TYPE.ToString() , model.Att_In_Out2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.FILTERDATA.ToString() , model.Att_FilterData2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.FILTERDATASPLIT.ToString() , model.Att_FilterDataSplit2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.ISCODEEMP.ToString() , model.Att_IsCodeEmp2);
dic.Add(AppConfig.HRM_SYS_TAMSCANLOG_2_.ToString() + AppConfig.ISACTIVATED.ToString(), model.Att_IsActive2.ToString());
var service = new BaseService();
var isSuccess = service.SaveData<Sys_AllSettingEntity>(dic, ConstantSql.hrm_cat_sp_get_UpdateAllSettingByName);
return model;
}