Advertisement
Placido_GDD

EmployeeDAO

May 15th, 2022
1,224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace DAL.DAO
  8. {
  9.     public class EmployeeDAO : EmployeeContext
  10.     {
  11.         public static void AddEmployee(EMPLOYEE employee)
  12.         {
  13.             try
  14.             {
  15.                 db.EMPLOYEEs.InsertOnSubmit(employee);
  16.                 db.SubmitChanges();
  17.             }
  18.  
  19.             catch (Exception ex)
  20.             {
  21.                 throw ex;
  22.             }
  23.         }
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement