Beispiel #1
0
        public static void Serialize(ColumnInfo columnInfo, BinaryWriter writer)
        {
            writer.Write(3);                // Version
            writer.Write(columnInfo.ColumnName);

            TypeSerializer.SerializeTo(writer, columnInfo.ColumnType);

            writer.Write(columnInfo.IsNotNull ? (byte)1 : (byte)0);

            if (columnInfo.DefaultExpression != null)
            {
                writer.Write((byte)1);
                SqlExpression.Serialize(columnInfo.DefaultExpression, writer);
            }
            else
            {
                writer.Write((byte)0);
            }
        }
Beispiel #2
0
 public static void Serialize(CursorParameter parameter, BinaryWriter writer)
 {
     writer.Write(parameter.ParameterName);
     TypeSerializer.SerializeTo(writer, parameter.ParameterType);
     writer.Write(parameter.Offset);
 }