Exemplo n.º 1
0
        protected virtual string GenerateBrowseFields(T info, string type)
        {
            var pipe          = type == TypeScript.Types.Datetime ? TypeScript.Pipes.MsDate : string.Empty;
            var referenceType = GetReferenceType(info);

            if (!string.IsNullOrWhiteSpace(referenceType))
            {
                return(PropertyTemplates.BrowseReferenceFields(info.Name, type, PropertyNameSuffix, pipe, referenceType));
            }

            return(PropertyTemplates.BrowseFields(info.Name, type, pipe));
        }