public BaseRepository()
 {
     db    = new LibraryManagementEntities();
     table = db.Set <T>();
 }