Skip to content

Commit 65b0d84

Browse files
Adds serialization for all constants.
1 parent 3509658 commit 65b0d84

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CouchDB.Driver/Translators/ConstantExpressionTranslator.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Newtonsoft.Json;
22
using System;
33
using System.Collections.Generic;
4+
using System.Diagnostics;
45
using System.Linq;
56
using System.Linq.Expressions;
67

@@ -52,7 +53,10 @@ protected override Expression VisitConstant(ConstantExpression c)
5253
else if (c.Value is Guid)
5354
_sb.Append(JsonConvert.SerializeObject(c.Value));
5455
else
55-
throw new NotSupportedException(string.Format("The constant for '{0}' is not supported", c.Value));
56+
{
57+
Debug.WriteLine($"The constant for '{c.Value}' not ufficially supported.");
58+
_sb.Append(JsonConvert.SerializeObject(c.Value));
59+
}
5660
break;
5761
default:
5862
_sb.Append(c.Value);

0 commit comments

Comments
 (0)