Starts in:
2 DAYS
7 HRS
38 MIN
56 SEC
Starts in:
2 D
7 H
38 M
56 S
Open Closed

Filter for ExtraProperties #7059


User avatar
0
viswajwalith created
  • ABP Framework version: v7.3.2
  • UI Type:MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

We used the below statement to filter data for ExtraProperties, not working for mongoDb

(await GetQueryableAsync()).Where(u => EF.Property<string>(u, "SocialSecurityNumber") == "123")

Is there any other way to filter Extraproperties in MongoDB, Please advise.


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    For MongoDB, it is stored as a regular field, since MongoDB naturally supports this kind of extra elements system.

    https://stackoverflow.com/questions/39603151/how-to-query-bsonextraelements-in-mongodb-via-linq

    https://mongodb.github.io/mongo-csharp-driver/2.5/apidocs/html/M_MongoDB_Driver_Linq_LinqExtensions_Inject__1.htm

  • User Avatar
    0
    viswajwalith created

    Worked Thanks for the support

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You're welcome, : )

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06