Added yet more linq capabilities.
Included a virtual destructor in the entity base class. Although not really necessary
in this case, it helps make the ultra paranoid compiler warnings go away.