private void ButtonSaveVideoToArchiveClick(object sender, EventArgs e) { var newRow = new Table_VideosArchive { AlternateText = ucUploadVideo1._textBoxVideoAlternateText.Text, Caption = ucUploadVideo1._textBoxVideoCaption.Text, Description = ucUploadVideo1._textBoxVideoDescription.Text, EmbedUrl = ucUploadVideo1._textBoxVideoEmbedUrl.Text, CategoryId = DataAccess.Lookup.GetLookupCategoryIdFromName( comboBoxCategory.SelectedText.Trim()), Date = DateTime.Now, UrlLink = "", CssClass = "EmbedVideo" }; GlobalValiables.Db.Table_VideosArchives.InsertOnSubmit(newRow); GlobalValiables.Db.SubmitChanges(); ucUploadVideo1.Clear(); }
private void detach_Table_VideosArchives(Table_VideosArchive entity) { this.SendPropertyChanging(); entity.Table_Article = null; }