Beispiel #1
0
        public SQLConnection()
        {
            // set command time out by seconds
            dbContext.CommandTimeout = 300;

            dbContext = new QLKDDataContext(CONNECTION_STRING);
        }
Beispiel #2
0
        public static void CreateSQlConnection()
        {
            try
            {
                dbContext.CommandTimeout = 300;

                dbContext = new QLKDDataContext(CONNECTION_STRING);
            }
            catch
            {
                return;
            }
        }