public bool save() { AccountHolderDataClassesDataContext dc = new AccountHolderDataClassesDataContext(); if (this.id > 0) { Transcript transcript = dc.Transcripts.Single(t => t.id == this.id); // Todo dc.SubmitChanges(); } else { this.transacted_at = DateTime.Now; dc.Transcripts.InsertOnSubmit(this); dc.SubmitChanges(); } return(true); }
partial void UpdateTranscript(Transcript instance);
partial void DeleteTranscript(Transcript instance);
partial void InsertTranscript(Transcript instance);