Hello, I am using DO.Net 4.4.0 and I have following entity: [HierarchyRoot] public class Content : Entity { ... [Field(Length = 1024, DefaultValue = "", Nullable = false)] [NotNullConstraint] public string Description { get; set; } [Field(Nullable = false),Version(VersionMode.Skip)] public DateTime DateAccessed { get; set; } [Field, Version(VersionMode.Auto)] public int Version { get; private set; } } What I'am trying to achieve is:
As a workaround right now I just removed the Content.Version from the entity, and it is working as expected. The problem is network traffic - entity objects are mapped to DTO objects and transferred over the network. The VersionInfo duplicates the traffic, because all fields which is part of the version are basically transferred twice. So, the question is: It is possible to define single field to hold entity version and define fields for which it should or should not be automatically incremented on value change? Many thanks. |
Btw, you can use 4 space indent to get fixed width font and syntax highlighting