Guest User

Untitled

a guest
Oct 20th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. AttestationDBEntities db;
  2.  
  3.  
  4. public StructureDataBaseViewModel()
  5. {
  6. db = new AttestationDBEntities();
  7. Departments = db.TDepartments.ToList();
  8. }
  9.  
  10.  
  11. private IEnumerable<TDepartment> departments;
  12. public IEnumerable<TDepartment> Departments
  13. {
  14. get { return departments; }
  15. set
  16. {
  17. departments = value;
  18. OnPropertyChanged("Departments");
  19. }
  20. }
  21.  
  22. connectionString="metadata=res://*/Models.AttestationDBModel.csdl|res://*/Models.AttestationDBModel.ssdl|res://*/Models.AttestationDBModel.msl;provider=System.Data.SqlClient;provider connection string="data source=(localdb)MSSQLLocalDB;attachdbfilename=|DataDirectory|AttestationDB.mdf;integrated security=True;connect timeout=30;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient"
Add Comment
Please, Sign In to add comment