随笔分类 - 数据库操作
操作数据库方面
C#Linq To Entry
摘要:public void updateUser(Server.Data.User User, out string resMsg) { try { var tempF = db.User.First(f => f.Id == User.Id); var tempFT = db.UserType.First(ft => ft.Id == User.UserTypeId); if (tempF!=null) { if (tempFT != null) { tempF.CreatorId = User.CreatorId; tempF.UserName = User.UserName; t
阅读全文
浙公网安备 33010602011771号