MscrmTools / MscrmTools.FluentQueryExpressions

A library to create QueryExpression the fluent way
GNU General Public License v3.0
23 stars 7 forks source link

Read the EntityLogicalName attribute on an entity for the logical name #10

Closed aa-dit-yuh closed 10 months ago

aa-dit-yuh commented 11 months ago

Reading the EntityLogicalName member of an entity class is a magic that only works for classes written using early/late bound generators.

When writing an entity class by hand, it is not obvious that the class must have a member named EntityLogicalName.

Read the EntityLogicalName attribute on an entity for the logical name seems like a much saner implementation.

Verified that all passing tests still pass after this refactor.