Example #1
0
        public static SQLServerConnection ReturnSqlServerConnection()
        {
            string server   = ConfigurationManager.AppSettings["SQLServer"];
            string database = ConfigurationManager.AppSettings["SQLServerDB"];
            string userId   = ConfigurationManager.AppSettings["SQLServerUsr"];
            string passWord = ConfigurationManager.AppSettings["SQLServerPwd"];

            SQLServerConnection connection = new SQLServerConnection {
                Database = database, PassWord = passWord, Server = server, UserId = userId
            };

            return(connection);
        }
 public ReportRepoTest(PetLib.SQLServerConnection connection)
 {
     _connection = connection;
 }