Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-487

Add multiple fields search support for LINQ provider

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: Feature Request
    • Labels:
      None

      Description

      Since structure of the document might be changed (i.e. field name, single value property might become a collection), it would be nice to save backward compatibility with old records while supporting new ones. One of the way to achieve this is to add custom attributes that will map new property to the old one(s).
      Example:

      old version of the class: employee.Task
      new version of the class: employee.Tasks

      As a result "var query =
      employees.AsQueryable<C>()
      .Where(e => e.Tasks.Contains(someTask));" should be able to make search through old records searching Task field and new records searching Tasks field.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: