You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,6 +32,12 @@ public ColumnInfo(string filterName, string columnName, string[] aliases, Type c
31
32
EnumType=enumType;
32
33
Description=description;
33
34
IsJson=isJson;
35
+
36
+
if(isEncrypted&&columnType!=typeof(string))
37
+
{
38
+
thrownewArgumentException($"Field {FieldName} is marked as encrypted but is not of type string. Encrypted columns must be of type string",nameof(isEncrypted));
39
+
}
40
+
IsEncrypted=isEncrypted;
34
41
}
35
42
36
43
/// <summary>
@@ -68,5 +75,10 @@ public ColumnInfo(string filterName, string columnName, string[] aliases, Type c
68
75
/// (optional) Set to true if the database column is storing JSON.
69
76
/// </summary>
70
77
publicboolIsJson{get;set;}=false;
78
+
79
+
/// <summary>
80
+
/// (optional) Set to true if the database column is encrypted.
Assert.AreEqual("The filter statement contained an unexpected token, 'InvalidValue'. Searchlight expects to find one of these next: None, Special, Generic",ex2.ErrorMessage);
0 commit comments