Пример #1
0
        public void InsertaMasivo(List <EmployeeBE> pListaEmployee)
        {
            try
            {
                using (TransactionScope ts = new TransactionScope())
                {
                    EmployeeDL objEmployee = new EmployeeDL();

                    foreach (EmployeeBE item in pListaEmployee)
                    {
                        objEmployee.InsertaMasivo(item);
                    }

                    ts.Complete();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }