Esempio n. 1
0
        public static PredefinedType?SpecToPredefinedType(INakedObjectSpecificationSurface spec)
        {
            if (spec.IsFileAttachment() || spec.IsImage())
            {
                return(PredefinedType.Blob);
            }

            if (spec.IsParseable() || spec.IsCollection() || spec.IsVoid())
            {
                Type underlyingType = spec.GetUnderlyingType();
                return(TypeToPredefinedType(underlyingType));
            }
            return(null);
        }
Esempio n. 2
0
 public static bool IsAttachment(INakedObjectSpecificationSurface spec) {
     return (spec.IsImage() || spec.IsFileAttachment());
 }
Esempio n. 3
0
        public static PredefinedType? SpecToPredefinedType(INakedObjectSpecificationSurface spec) {
            if (spec.IsFileAttachment() || spec.IsImage()) {
                return PredefinedType.Blob;
            }

            if (spec.IsParseable() || spec.IsCollection() || spec.IsVoid()) {
                Type underlyingType = spec.GetUnderlyingType();
                return TypeToPredefinedType(underlyingType);
            }
            return null;
        }
Esempio n. 4
0
 public static bool IsAttachment(INakedObjectSpecificationSurface spec)
 {
     return(spec.IsImage() || spec.IsFileAttachment());
 }