Advertisement
gladyssann

[Model] EmployeeContext

Dec 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data.Entity;
  4. using System.Linq;
  5. using System.Web;
  6.  
  7. namespace MVCCMigration.Models
  8. {
  9. public class EmployeeContext : DbContext
  10. {
  11. public EmployeeContext() : base("name=EmployeeContext") {
  12.  
  13.  
  14. }
  15.  
  16. public DbSet<Department> department { get; set; }
  17. public DbSet<Employee> employee { get; set; }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement