示例#1
0
 protected virtual void ApplyListProperty(Property prop, Serialization.SerializationMembersList serList)
 {
     Properties.ListProperty.Call(Host, ctx,
                                  serList,
                                  this.DataType,
                                  prop.Name,
                                  prop);
 }
示例#2
0
 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;
 }
示例#3
0
 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);
     }
 }
示例#4
0
        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);
        }
示例#5
0
 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);
     }
 }
示例#6
0
        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);
        }
示例#7
0
 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);
 }
示例#8
0
 protected virtual void ApplyCalculatedProperty(CalculatedObjectReferenceProperty prop, Serialization.SerializationMembersList serList)
 {
     Properties.CalculatedProperty.Call(Host, ctx,
                                        serList, prop);
 }
示例#9
0
 protected virtual void ApplyNotifyingValueProperty(Property prop, Serialization.SerializationMembersList serList)
 {
     Properties.NotifyingDataProperty.Call(Host, ctx,
                                           serList, prop);
 }