Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
9ae3d50b
Commit
9ae3d50b
authored
Nov 20, 2015
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConnectionString for Appveyor
hacky style - I think we want to remove the program given dnx run exists
parent
ab1aeb30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Program.cs
Dapper.DNX.Tests/Program.cs
+3
-3
No files found.
Dapper.DNX.Tests/Program.cs
View file @
9ae3d50b
...
@@ -31,18 +31,18 @@ public class Post
...
@@ -31,18 +31,18 @@ public class Post
public
int
?
Counter7
{
get
;
set
;
}
public
int
?
Counter7
{
get
;
set
;
}
public
int
?
Counter8
{
get
;
set
;
}
public
int
?
Counter8
{
get
;
set
;
}
public
int
?
Counter9
{
get
;
set
;
}
public
int
?
Counter9
{
get
;
set
;
}
}
}
class
Program
class
Program
{
{
public
const
string
ConnectionString
=
"Data Source=.;Initial Catalog=tempdb;Integrated Security=True"
,
public
const
string
ConnectionString
=
"Data Source=.;Initial Catalog=tempdb;Integrated Security=True"
,
AppveyorConnectionStrng
=
@"Server=(local)\SQL2014;Database=master;User ID=sa;Password=Password12!"
,
OleDbConnectionString
=
"Provider=SQLOLEDB;Data Source=.;Initial Catalog=tempdb;Integrated Security=SSPI"
;
OleDbConnectionString
=
"Provider=SQLOLEDB;Data Source=.;Initial Catalog=tempdb;Integrated Security=SSPI"
;
public
static
SqlConnection
GetOpenConnection
(
bool
mars
=
false
)
public
static
SqlConnection
GetOpenConnection
(
bool
mars
=
false
)
{
{
var
cs
=
ConnectionString
;
var
isAppveyor
=
!
string
.
IsNullOrEmpty
(
Environment
.
GetEnvironmentVariable
(
"Appveyor"
));
var
cs
=
isAppveyor
?
AppveyorConnectionStrng
:
ConnectionString
;
if
(
mars
)
if
(
mars
)
{
{
var
scsb
=
new
SqlConnectionStringBuilder
(
cs
)
var
scsb
=
new
SqlConnectionStringBuilder
(
cs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment