tonyeroberts wrote:
I'm a little confused on how to appropriately use the new "Add new Entities Mapped on Views..." functionality. Ultimately, I want to join one of my views with an Entity so I can filter off one of the Entity's fields.
When I add the View as an entity in the designer, then generate the code, I end up with a compile error, "The namespace "..." already contains a definition for 'LoanGridViewFieldIndex'". It looks like the Entity and the TypedView's field indexes are being named the same. Am I doing this right? Are there any examples in the documentation that show how to do this?
The issue you run into is caused indeed by the fact that you have a typed view and an entity with the same name. It's wise to rename the view or the entity so they're named differently. Helps you recognize which field indexes you need.
I'll file this as a bug though so a better check will be added for this in the designer.