TongnianEntities _entities = new TongnianModel.TongnianEntities();
music_Song song = new music_Song();
song.Title = TextBoxTitle.Text.Trim();
_entities.AddToSongSet(song);
_entities.SaveChanges();
Response.Redirect(“AddFileToSong.aspx?SongId=” + song.SongId.ToString());
原来就是这么简单。
关于作者