随笔分类 -  数据库操作

操作数据库方面
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 阅读全文
posted @ 2012-02-18 14:23 EvilGenius 阅读(411) 评论(2) 推荐(0)