OData filtering
Hi everyone, I want to ask you something about OData,
I have roles for a user. And I separate these roles with ",". For example, there are roles such as;
user_1: "test_1, test_2"
user_2: "test_1"
user_2: "test_2, test_4"
I use OData when listing these roles. There is a filtering process on the FE side. However, since there is more than one role separated by commas, it gives the following error:
objA: (object)EF.Property<Guid?>(u, "Id"), \r\n objB: (object)EF.Property<Guid?>(u0, "UserId")))\r\n . Any() ? string.Join(\r\n separator: ",", \r\n values: DbSet<UserRole>()\r\n .Where(u1 => !(u1.IsDeleted))\r\n .Where( u1 => EF.Property<Guid?>(u, "Id") != null && object.Equals(\r\n )
How do you think I can do the filtering? When I filter as "test_2" I want user_1 and user_2 to appear.
I have roles for a user. And I separate these roles with ",". For example, there are roles such as;
user_1: "test_1, test_2"
user_2: "test_1"
user_2: "test_2, test_4"
I use OData when listing these roles. There is a filtering process on the FE side. However, since there is more than one role separated by commas, it gives the following error:
objA: (object)EF.Property<Guid?>(u, "Id"), \r\n objB: (object)EF.Property<Guid?>(u0, "UserId")))\r\n . Any() ? string.Join(\r\n separator: ",", \r\n values: DbSet<UserRole>()\r\n .Where(u1 => !(u1.IsDeleted))\r\n .Where( u1 => EF.Property<Guid?>(u, "Id") != null && object.Equals(\r\n )
How do you think I can do the filtering? When I filter as "test_2" I want user_1 and user_2 to appear.
