public void AddComment(string username, int itemId, string comment) { ItemComment itemComment = new ItemComment(); itemComment.Username = username; itemComment.ItemId = itemId; itemComment.Comment = comment; itemComment.Date = DateTime.Now; itemComment.ThumbsUp = 1; db.ItemComments.InsertOnSubmit(itemComment); db.SubmitChanges(); }
private void detach_ItemComments(ItemComment entity) { this.SendPropertyChanging(); entity.Item = null; }
private void attach_ItemComments(ItemComment entity) { this.SendPropertyChanging(); entity.Item = this; }
partial void DeleteItemComment(ItemComment instance);
partial void UpdateItemComment(ItemComment instance);
partial void InsertItemComment(ItemComment instance);