public static void AddFavManga(int tid, int uid) { AnimeDataContext db = new AnimeDataContext(); FavManga adan = new FavManga { MangaID = tid, UserID = uid }; db.FavMangas.InsertOnSubmit(adan); db.SubmitChanges(); }
partial void DeleteFavManga(FavManga instance);
partial void UpdateFavManga(FavManga instance);
partial void InsertFavManga(FavManga instance);
private void detach_FavMangas(FavManga entity) { this.SendPropertyChanging(); entity.User = null; }
private void attach_FavMangas(FavManga entity) { this.SendPropertyChanging(); entity.User = this; }