Adding protobuf serialization to generated classes
Posted: Mon 11 Feb 2013 11:01
Hello. I'm using Entity developer with postgres and I need to replace standart serialization for generated classes with protbuf serialization. So I need something like this:
What I need to change in template to get such output?
Code: Select all
[Serializable]
[ProtoContract]
public partial class MyClass : EntityObject
{
[ProtoMember(1)]
public string Attribute1 { get {...}, set{...}}
[ProtoMember(2)]
public string Attribute2 { get {...}, set{...}}
...
}