我想将新记录添加到相关表中。我有三张桌子:
我想向该表添加新的技术技能值。这是我现在的代码:
using (var db = new KnowItCvdbEntities())
{
var dbSkill = new TECHNICAL_SKILLS_VALUES
{
technical_skill_value_id = new Random().Next(),
skill_name = TextBoxTechSkill.Text,
skill_type = DropDownListTechSkill.SelectedItem.Text
};
//I want to add the new skill to my TECHNICAL_SKILLS_VALUE table. But I really don't get it how to make it.
db.SaveChanges();
}