C# 数据库连接字符串拼接

string connectionString = string.Format(@"Data Source={0};User ID={1};Password={2};Initial Catalog={3};Pooling=true",
                                             dataSource, userID, password, databaseName);
原文地址:https://www.cnblogs.com/lbonet/p/7350647.html