private void insertToolStripMenuItem_Click(object sender, EventArgs e) { connlayer = new ConnectedLayer(); dc = new DbDataContext <Airplane>(connlayer.connectionString); Airplane airplane = new Airplane { Type_Airplane = $"{textBox1.Text}", Class_Airplane = $"{textBox2.Text}" }; dc.Insert(ref airplane); }