private Copy addNewCopy(String textToAdd) { Copy newCopy = new Copy(); newCopy.Text = textToAdd; newCopy.DateTime = DateTime.Now; database.Copies.InsertOnSubmit(newCopy); database.SubmitChanges(); return newCopy; }
private void addToClipboard(Copy copy) { ClipboardLine newClipboardLine = new ClipboardLine(); newClipboardLine.CopyId = copy.Id; database.ClipboardLines.InsertOnSubmit(newClipboardLine); database.SubmitChanges(); }
partial void UpdateCopy(Copy instance);
partial void DeleteCopy(Copy instance);
partial void InsertCopy(Copy instance);