R#
Added query test for equal comparison between two entities
Created aliases for the overly long and complex Func signatures and performed a simple R#.
Moved field assignments to the constructors.
Variable assignment to increase readability
Added TODO for where the equality replacement for ResourceIdPropertyAttribute should be performed.
Prototyping a fix for the entity equality query problem with a ResourceIdPropertyReplacer expression visitor. Doesn't work quite yet.