コード例 #1
0
        //Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}"
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Employee employee = new Employee();

                //employee.Name = username.Text;
                //employee.Email = email.Text;
                //employee.Phone = phone.Text;
                //employee.Job = jobPosition.SelectedItem.ToString();


                financialContext context = new financialContext();
                context.Employee.Add(employee);
                context.SaveChanges();
            }
            catch (Exception)
            {
                throw;
            }
        }