1 result found
An error occurred while saving the comment An error occurred while saving the commentIgor Gatis commented
Answering admin's comment:
I forgot to mention protobuf-csharp-port generted classes have no null properties. Instead of comparing the property to null, one must check .HasPropertyX.
An error occurred while saving the commentIgor Gatis commented
I'd like to use OrmLite with protobuf-csharp-port generated classes.
Each entity has two generated classes:
1. "Foo" which is immutable (like String)
2. "Foo.Builder" which is mutable and produces a "Foo" when .Build() is called (like StringBuilder and .ToString()).
I cannot use Foo because it has no setters. Although I can work around Foo.Builder's name with [Alias("Foo")], it has a bunch of properties which must not become columns. The list is bigger but I think these gives the picture.Igor Gatis supported this idea ·
I managed to make this work for protobuf-csharp-classes. The answer is here: http://stackoverflow.com/questions/31420049/is-there-way-to-use-protobuf-csharp-port-generated-classes-with-servicestack-orm/31710296#31710296