Support Find and EF Property syntax

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Unknown
    • Public Preview 1
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In scope for PP1

      The EF find method maps to Property on a Where clause (followed by FirstOrDefault with no predicate).

      Right now this doesn't work as the LINQ provider doesn't know about EF.Properties and we don't yet translate.

      So, in the case of

      var a = customers.Find("abc")

      EF generates

      customers.Where(c => Property(c, "Id") == "abc").FirstOrDefault()

      (Technically the "abc" is a parameter but this is fine for illustration purposes)

      We need to resolve references to EF.Property(x, y) to their actual POCO property.

      In the case where there is no POCO property (shadow properties) we should throw as we can't support them at this time without changes to the V3 LINQ provider.

            Assignee:
            Damien Guard
            Reporter:
            Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: