0
[HttpPost]
public ActionResult Save(IEnumerable<long> data,long playlistid=0)
{
var q = from client in my.Clients(0, 0)
join m in db.Playlists on client.ClientId equals m.ClientId
join meta in db.ContentMetaDatas on m.PlaylistId equals meta.PlaylistId
select new{
m.PlaylistId,
meta.ContentId,
m.PlaylistShortDescription,
meta.ContentMetaDataImage,
m.PlaylistTitle
};
return Json(data);
}
這是我的MVC控制器代碼,通過AJAX更新後的值。數據庫如何更新?想寫更新查詢在LINQ
http://stackoverflow.com/questions/5940225/fastest插入實體框架也應該有所幫助。 – yonexbat 2013-04-27 14:18:26