示例#1
0
        public static string WithParameters(this IDbConfig dbConfig, params string[] parameters)
        {
            var prefix = dbConfig.GetParameterPrefix();

            parameters = parameters.Select(x => $"{prefix}{x.Replace(":", "").Replace("@", "")}").ToArray();

            return(string.Join(", ", parameters));
        }
 public string GetParameterPrefix()
 {
     return(SqlBuilderHelper.GetParameterPrefixIfNull(DbConfig?.GetParameterPrefix()));
 }