Exemplo n.º 1
0
 public static SqlTool getInstance()
 {
     if(null == instance)
     {
         instance = new SqlTool();
     }
     return instance;
 }
Exemplo n.º 2
0
 public static SqlTool getInstance()
 {
     if (null == instance)
     {
         instance = new SqlTool();
     }
     return(instance);
 }
Exemplo n.º 3
0
 public static SqlTool getInstance(string connStr)
 {
     if(null == instance)
     {
         connection = new OleDbConnection("".Equals(connStr) ? connectionString : connStr);
         instance = new SqlTool();
     }
     return instance;
 }
Exemplo n.º 4
0
 public static SqlTool getInstance(string connStr)
 {
     if (null == instance)
     {
         connection = new OleDbConnection("".Equals(connStr) ? connectionString : connStr);
         instance   = new SqlTool();
     }
     return(instance);
 }