Re: [protobuf] [Protobuf] Can protobuf serialize datatable (C#)

2014-07-11 Thread Marc Gravell
Yes, a `byte[]` can be declared as a `ProtoMember` - it maps to the `bytes` type in the protobuf spec. I would strongly advise *against* DynamicType here; that should be used as a last resort only. If you know the data you want to serialize is actually a finite set of types, I would use that if

Re: [protobuf] [Protobuf] Can protobuf serialize datatable (C#)

2014-07-10 Thread Desmond Davids
Hey Marc, I know this is an old article. but i need to ask you something regarding this. We have a WCF service which we use to execute SqlCommands to our DB. We send Commands with DataContractSerialization. I came across protobuf-net and I have converted my WCF service to use protobuf. We now

Re: [protobuf] [Protobuf] Can protobuf serialize datatable (C#)

2014-07-10 Thread Marc Gravell
Ooh, the idea of allowing SQL over a service boundary sends all kinds of shivers up my back, and not the good kind of shivers. On your head be it, but: I wouldn't do that myself. I once did some experimental datatable serialisation code - it isn't in the release binary, but it is still inside the

Re: [protobuf] [Protobuf] Can protobuf serialize datatable (C#)

2010-07-16 Thread Marc Gravell
From the message, that *sounds* like protobuf-net... There is no built-in handling of this, but it is possibly something that could be added, especially in v2 which has a much more flexible model. For example, you *could* argue that there is an implicit schema that uses a repeated element per

[protobuf] [Protobuf] Can protobuf serialize datatable (C#)

2010-07-15 Thread Ferryandi Chai
Hi All, Im just wondering can protobuf serialize datatable. Im a c# developer, and when i tried to serialize datatable it prompt this error: Only data-contract classes (and lists/arrays of such) can be processed (error processing DataTable) Tried to google this problem but cannot find