//private static SQLServer.UniDbTypes ConvertToDatabaseType(Property property)
        //{
        //    if ((property.Type == "System.String" || property.Type == "string") &&
        //        (property.ValidationOptions.MaximumLength.HasValue && property.ValidationOptions.MaximumLength > 0))
        //    {
        //        return SQLServer.UniDbTypes.NVarChar;
        //    }
        //    return SQLServer.ConvertCLRTypeNameToSQLTypeName(property.Type);
        //}

        private SQLServer.UniDbTypes ConvertToDatabaseType(ComponentProperty property)
        {
            if ((property.Type == "System.String" || property.Type == "string") &&
                (property.ValidationOptions.MaximumLength.HasValue && property.ValidationOptions.MaximumLength > 0))
            {
                return(SQLServer.UniDbTypes.NVarChar);
            }
            return(SQLServer.ConvertCLRTypeNameToSQLTypeName(property.Type));
        }