Example #1
0
 public virtual Net.Vpc.Upa.Impl.Persistence.TypeMarshaller CreateTypeMarshaller(Net.Vpc.Upa.Types.DataType type)
 {
     Net.Vpc.Upa.Types.NumberType n = (Net.Vpc.Upa.Types.NumberType)type;
     System.Type c = n.GetPlatformType();
     Net.Vpc.Upa.Impl.Persistence.TypeMarshaller m = pm.GetTypeMarshaller(c);
     if (m == null)
     {
         m = pm.GetTypeMarshaller(typeof(object));
     }
     return(m);
 }
Example #2
0
 public DatePeriodType(string name, string countName, string periodTypeName, Net.Vpc.Upa.Types.NumberType countDataType)  : base(name, typeof(Net.Vpc.Upa.Types.DatePeriod), countDataType.IsNullable())
 {
     this.countName          = countName;
     this.periodTypeName     = periodTypeName;
     this.countDataType      = countDataType;
     this.periodTypeDataType = new Net.Vpc.Upa.Types.EnumType(typeof(Net.Vpc.Upa.Types.PeriodOption), countDataType.IsNullable());
     if (this.countName == null)
     {
         this.countName = "count";
     }
     if (periodTypeName == null)
     {
         periodTypeName = "type";
     }
     SetDefaultNonNullValue(new Net.Vpc.Upa.Types.DatePeriod((((int?)countDataType.GetDefaultNonNullValue())).Value, Net.Vpc.Upa.Types.PeriodOption.DAY));
 }