protected virtual void ApplyListProperty(Property prop, Serialization.SerializationMembersList serList) { Properties.ListProperty.Call(Host, ctx, serList, this.DataType, prop.Name, prop); }
public SerializerTemplate(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, SerializationMembersList fields, bool overrideAndCallBase, string exportGuidBackingStore) : base(_host) { this.ctx = ctx; this.direction = direction; this.fields = fields; this.overrideAndCallBase = overrideAndCallBase; this.exportGuidBackingStore = exportGuidBackingStore; }
public static void AddToSerializers(SerializationMembersList list, SerializerType type, string xmlnamespace, string xmlname, string backingStoreName, string enumerationType) { if (list != null) { list.Add("Serialization.EnumBinarySerialization", type, xmlnamespace, xmlname, backingStoreName, enumerationType); } }
public static void AddToSerializers(SerializationMembersList list, EnumerationProperty prop, string backingStoreName) { string xmlnamespace = prop.Module.Namespace; string xmlname = prop.Name; string enumerationType = prop.GetElementTypeString(); AddToSerializers(list, prop.DisableExport == true ? Templates.Serialization.SerializerType.Binary : SerializerType.All, xmlnamespace, xmlname, backingStoreName, enumerationType); }
public static void AddToSerializers(SerializationMembersList list, SerializerType type, string xmlnamespace, string xmlname, string memberType, string memberName) { if (list != null) { list.Add( "Serialization.SimplePropertySerialization", type, xmlnamespace, xmlname, memberType, memberName); } }
public static void Call(Arebis.CodeGeneration.IGenerationHost _host, IZetboxContext ctx, SerializerDirection direction, SerializationMembersList fields, bool overrideAndCallBase, string exportGuidBackingStore) { if (_host == null) { throw new global::System.ArgumentNullException("_host"); } _host.CallTemplate("Serialization.SerializerTemplate", ctx, direction, fields, overrideAndCallBase, exportGuidBackingStore); }
public static void Add(SerializationMembersList list, IZetboxContext ctx, string xmlnamespace, string xmlname, string collectionName, bool orderByValue, bool disableExport) { list.Add("Serialization.CollectionSerialization", disableExport ? Serialization.SerializerType.Binary : Serialization.SerializerType.All, xmlnamespace, xmlname, collectionName, orderByValue, disableExport); }
protected virtual void ApplyCalculatedProperty(CalculatedObjectReferenceProperty prop, Serialization.SerializationMembersList serList) { Properties.CalculatedProperty.Call(Host, ctx, serList, prop); }
protected virtual void ApplyNotifyingValueProperty(Property prop, Serialization.SerializationMembersList serList) { Properties.NotifyingDataProperty.Call(Host, ctx, serList, prop); }