会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myis程序员
2015年10月10日
EF编辑
摘要: //修改推荐的信息 var productRe = db.Shop_ProductRecommends.Single(item => item.Id == model.Id); productRe.seat ...
阅读全文
posted @ 2015-10-10 19:11 myis程序员编程本领强
阅读(129)
评论(0)
推荐(0)
EF添加
摘要: 1.添加单个模型(CreatRule()是构造模型)(Shop_ActivityRuleProduct是类)var rule = CreatRule(model); var ruled = db.Set().Add(rule);2.添加多个模型(CreateLa...
阅读全文
posted @ 2015-10-10 19:09 myis程序员编程本领强
阅读(117)
评论(0)
推荐(0)
程序后台写事务
摘要: 1.db.Database.BeginTransaction();2.public Result AddActivityProduct(ActivityRuleProductViewModel model) { Result result = new Result...
阅读全文
posted @ 2015-10-10 19:05 myis程序员编程本领强
阅读(343)
评论(0)
推荐(0)
前台ajax加载数据
摘要: function sendPostRequest(targetUrl, parameters, successCallback, errorCallback) { $.ajax({ type: "POST", url: targetUrl, data:...
阅读全文
posted @ 2015-10-10 18:52 myis程序员编程本领强
阅读(257)
评论(0)
推荐(0)
转化json
摘要: /// /// 返回处理过的时间的Json字符串/// /// 数据/// JSON数据public ContentResult JsonDate(object date){ JsonSerializerSettings MyJsonSerializerSettings = new JsonS...
阅读全文
posted @ 2015-10-10 18:48 myis程序员编程本领强
阅读(150)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告