public static string GetSelectFields(System.Type type, ISqlBuilder builder, params string[] ignorProperties)
        {
            ORMappingItemCollection mapping = InnerGetMappingInfo(type);

            SelectSqlClauseBuilder selectBuilder = GetSelectSqlClauseBuilder(false, mapping, ignorProperties);

            return(selectBuilder.ToSqlString(TSqlBuilder.Instance));
        }
        private static string GetSelectSql(bool useTableName, ORMappingItemCollection mapping, ISqlBuilder builder, string[] ignorProperties)
        {
            ExceptionHelper.FalseThrow <ArgumentNullException>(mapping != null, "mapping");
            ExceptionHelper.FalseThrow <ArgumentNullException>(builder != null, "builder");

            SelectSqlClauseBuilder selectBuilder = GetSelectSqlClauseBuilder(useTableName, mapping, ignorProperties);

            return(string.Format("SELECT {0} FROM {1} ", selectBuilder.ToSqlString(builder), mapping.TableName));
        }