Class CustomExpressionXmlConverter
Defined converter for XML element and expression.
Inheritance
System.Object
CustomExpressionXmlConverter
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.dll
Syntax
public abstract class CustomExpressionXmlConverter
Methods
View SourceTryDeserialize(XElement, out Expression)
Upon deserialization replace the Query (IQueryable) in the Expression tree with a new Query that has a different ConstantExpression. Re-create the Query, but with a different server-side IQueryProvider. For IQuery-Provider, we just create a Linq.EnumerableQuery`1. Need both a working IQueryProvider and a new Query with ConstantExpression equal to actual data.
Declaration
public abstract bool TryDeserialize(XElement expressionXml, out Expression e)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.Linq.XElement | expressionXml | An XML element. |
System.Linq.Expressions.Expression | e | An expression. |
Returns
Type | Description |
---|---|
System.Boolean | True if deserialize was successful, otherwise false. |
TrySerialize(Expression, out XElement)
Try to serialize the given expression.
Declaration
public abstract bool TrySerialize(Expression expression, out XElement x)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | An expression. |
System.Xml.Linq.XElement | x | An XML element. |
Returns
Type | Description |
---|---|
System.Boolean | True if deserialize was successful, otherwise false. |