Exemplo n.º 1
0
        protected virtual string GenerateDefinition(T info, string type)
        {
            switch (type)
            {
            case TypeScript.Types.Datetime:
            case TypeScript.Types.LongString:
                return(PropertyTemplates.Definition(info.Name, TypeScript.Types.String, PropertyNameSuffix));

            case TypeScript.Types.Binary:
                return(PropertyTemplates.Definition(info.Name, TypeScript.Types.Any, PropertyNameSuffix));
            }

            return(PropertyTemplates.Definition(info.Name, type, PropertyNameSuffix));
        }