public void Insert(Actor actor) { datacontext.Actors.InsertOnSubmit(actor); try { datacontext.SubmitChanges(); } catch (Exception error) { Console.WriteLine("Kon niet toevoegen."); } }
partial void UpdateActor(Actor instance);
partial void DeleteActor(Actor instance);
partial void InsertActor(Actor instance);