本文整理汇总了C#中Common.Utilities.ConnectionsName方法的典型用法代码示例。如果您正苦于以下问题:C# Common.Utilities.ConnectionsName方法的具体用法?C# Common.Utilities.ConnectionsName怎么用?C# Common.Utilities.ConnectionsName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common.Utilities
的用法示例。
在下文中一共展示了Common.Utilities.ConnectionsName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Connection
/// <summary>
/// lay gia tri tu file xml
/// </summary>
public Connection()
{
Entities.SQL sql = new Entities.SQL();
Common.Utilities com = new Common.Utilities();
sql = com.ConnectionsName();
strConnect = "Data Source=" + sql.ServerName + ";User ID=" + sql.UserName + ";password=" + sql.Password + ";Initial Catalog=" + sql.DatabaseName;
}
示例2: frmSQL_Paint
private void frmSQL_Paint(object sender, PaintEventArgs e)
{
try
{
if (i == 0)
{
i = 1;
if (Luu.Server == "server")
{
Common.Constants.Sql data = new Common.Constants.Sql();
string Links = Application.StartupPath.ToString() + data.ConfigXML;
Common.Utilities com = new Common.Utilities();
if (com.CheckFile(Links) == true)
{
Entities.SQL sql = new SQL();
sql = com.ConnectionsName();
_connectionString = "Data Source=" + sql.ServerName
+ ";User ID=" + sql.UserName
+ ";password=" + sql.Password
+ ";Initial Catalog=" + sql.DatabaseName;
if (CheckDatabase("SupermarketManagementDHT") == true)
{
if (!Luu.KFULL)
{
loginOK();
}
}
else
{
SelectServerName();
}
}
else
{ SelectServerName(); }
}
else
{
if (Luu.Server == "client")
{
loginOK();
}
else
{ MessageBox.Show("Kiểm tra lại file xml"); }
}
}
}
catch
{ }
}