Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Gemstone.Data/Model/RecordFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using Gemstone.Diagnostics;
using Newtonsoft.Json.Linq;

namespace Gemstone.Data.Model;

Expand Down Expand Up @@ -70,6 +71,12 @@ public required object? SearchParameter
case null:
field = DBNull.Value;
break;
case JArray array:
field = array
.Select(token => token is JValue value ? value.Value : token.ToString())
.Select(element => ModelProperty is null ? element : Common.TypeConvertFromString(element?.ToString() ?? "", ModelProperty.PropertyType))
.ToArray();
break;
case Array array:
{
object?[] typedArray = new object[array.Length];
Expand Down