-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to serialize data row rule #25
Comments
I'll have a Pull Request for this soon, but to get you working now: In MRE.cs, add the serializarion attributes to DataRule:
Include the "known type" in the serializer:
Also, if Column2 is an int, make it that in the rule:
|
Yes , that works for me..
Thank you so much.
…On Thu, Aug 6, 2020 at 5:02 PM James Curran ***@***.***> wrote:
I'll have a Pull Request for this soon, but to get you working now:
In MRE.cs, add the serializarion attributes to DataRule:
[DataContract]
public class DataRule : Rule
{
[DataMember]
public string Type { get; set; }
Include the "known type" in the serializer:
var serializer = new DataContractJsonSerializer(typeof(DataRule), new[] { typeof(Rule) });
Also, if Column2 is an int, make it that in the rule:
Rule rule = DataRule.Create("Column2", mreOperator.Equal, 123)
& DataRule.Create("Column1", mreOperator.Equal, "Test");
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQQ435YCQIRFIA26TWLCXB3R7MK6DANCNFSM4PW52DOA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DataRule.Create("Column2", mreOperator.Equal, "123") & DataRule.Create("Column1", mreOperator.Equal, "Test");
I used this example and want to serialize this rule . Getting error.
The text was updated successfully, but these errors were encountered: