partial void DeletePlayList(PlayList instance);
public void AddToPlayList(string mids,string uid) { string sql="select * from Music where Mid in ("+mids+")"; var result = db.ExecuteQuery<Music>(sql); foreach (var item in result) { PlayList pl = new PlayList(); pl.Mid = item.Mid; pl.Uid = uid; db.PlayList.InsertOnSubmit(pl); db.SubmitChanges(); } }
partial void UpdatePlayList(PlayList instance);
partial void InsertPlayList(PlayList instance);