Exemplo n.º 1
0
        public string GetParam(OdcmProperty type)
        {
            if (type.IsComplex())
            {
                return(type.IsSystem() ? string.Empty : type.GetTypeString() + " *" + type.Name.ToLowerFirstChar());
            }

            return(type.GetTypeString() + " " + type.Name);
        }
Exemplo n.º 2
0
 public static string ToPropertyString(this OdcmProperty property)
 {
     return(string.Format("{0} {1}{2}", property.GetFullType(), (property.IsComplex() ? "*" : string.Empty), SanitizePropertyName(property)));
 }
Exemplo n.º 3
0
 public static string ToSetterTypeString(this OdcmProperty property)
 {
     return(string.Format("{0} {1}", property.GetFullType(), (property.IsComplex() ? "*" : string.Empty)));
 }
Exemplo n.º 4
0
 public string GetClass(OdcmProperty type)
 {
     return(type.IsComplex() ? string.Format("[{0}{1} class]", GetPrefix(), type.GetTypeString()) : "nil");
 }
Exemplo n.º 5
0
 public static bool IsComplexCollectionOpenType(this OdcmProperty property, OdcmModel model)
 {
     return(property.IsComplex() && property.Projection.Type.Name.ToLower().EndsWith("collection") &&
            model.GetComplexTypes().Any(complexType => complexType.Name.Equals(property.Projection.Type.Name) && complexType.IsOpen));
 }