C# sqlserver winform

时间:2022-06-05 14:37:29

//public static readonly string LocalSqlServer = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"].ToString();
public static readonly string LocalSqlServer = System.Configuration.ConfigurationManager.ConnectionStrings["SQLConnString"].ConnectionString;