public void AddLink(string url, int itemId,string username) { Link link = new Link(); link.DeadFlags = 0; link.ItemId = itemId; link.ThumbsUp = 1; link.Url = url; link.Date = DateTime.Now; link.Username = username; db.Links.InsertOnSubmit(link); db.SubmitChanges(); }
private void detach_Links(Link entity) { this.SendPropertyChanging(); entity.Item = null; }
private void attach_Links(Link entity) { this.SendPropertyChanging(); entity.Item = this; }
partial void DeleteLink(Link instance);
partial void UpdateLink(Link instance);
partial void InsertLink(Link instance);