ET 接入 Mysql

先確定已經安裝 Chloe 組件後將 MySqlContext 加入組件
69059-p5rx6kxlnf.png

接著在 System 中完成讀取配置跟連接
22270-amvn97ot2re.png

mysql 配置如下
92468-dxzfrkvkz2.png

獲取數據

List<Tbl_UserStageInfo> userStageInfos = mySqlComponent.dbContext.Query<Tbl_UserStageInfo>().Where(item => item.UserId == UserId).ToList();

更新數據

mySqlComponent.dbContext.Update<Tbl_UserStageInfo>(userStageInfo);

发表评论

电子邮件地址不会被公开。 必填项已用*标注