Definition at line 25 of file SqlExpressionSerializers.cs.
static Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializers |
( |
| ) |
|
|
inlinestaticprivate |
static SqlExpression Deveel.Data.Sql.Expressions.SqlExpressionSerializers.Deserialize |
( |
BinaryReader |
reader | ) |
|
|
inlinestatic |
Definition at line 51 of file SqlExpressionSerializers.cs.
52 var status = reader.ReadByte();
56 var typeName = reader.ReadString();
58 var type =
Type.GetType(typeName,
true);
60 var type =
Type.GetType(typeName,
true,
true);
64 if (serializer == null)
65 throw new InvalidOperationException(
String.Format(
"Cannot find a valid binary serializer for expression of type '{0}'", type));
67 return (SqlExpression) serializer.
Deserialize(reader);
A long string in the system.
static IObjectSerializerResolver Resolver
A user-defined TYPE that holds complex objects in a database column.
IObjectSerializer ResolveSerializer(Type objectType)
object Deserialize(BinaryReader reader)
static void Deveel.Data.Sql.Expressions.SqlExpressionSerializers.Serialize |
( |
SqlExpression |
expression, |
|
|
BinaryWriter |
writer |
|
) |
| |
|
inlinestatic |
Definition at line 32 of file SqlExpressionSerializers.cs.
33 if (expression == null) {
34 writer.Write((byte)0);
38 var expType = expression.GetType();
39 var expTypeName = expType.FullName;
42 if (serializer == null)
43 throw new InvalidOperationException(
String.Format(
"Cannot find a valid binary serializer for expression of type '{0}'", expType));
45 writer.Write((byte)1);
46 writer.Write(expTypeName);
A long string in the system.
static IObjectSerializerResolver Resolver
IObjectSerializer ResolveSerializer(Type objectType)
void Serialize(object obj, BinaryWriter writer)
The documentation for this class was generated from the following file: