public int SaveToDatabase(int articleId, int embedObjId, int takType) { var tak = new Table_Taktzirim { PhotoId = (int)comboBoxTakPhoto.SelectedValue, ArticleId = articleId, EmbedObjId = embedObjId, ScheduleId = -1, // TODO: need to insert the schedule id when schedule is activated TakContent = textBoxTakContent.Text, TakTitle = textBoxTakTitle.Text, TakTypeId = takType }; tak = Insert.TableTaktzirim(tak); return (tak == null) ? -1 : tak.TakId; }
partial void DeleteTable_Taktzirim(Table_Taktzirim instance);
partial void UpdateTable_Taktzirim(Table_Taktzirim instance);
partial void InsertTable_Taktzirim(Table_Taktzirim instance);