public SQLConnection() { // set command time out by seconds dbContext.CommandTimeout = 300; dbContext = new QLKDDataContext(CONNECTION_STRING); }
public static void CreateSQlConnection() { try { dbContext.CommandTimeout = 300; dbContext = new QLKDDataContext(CONNECTION_STRING); } catch { return; } }