-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved all code into 2 projects to save reference hell!
- Loading branch information
Showing
125 changed files
with
1,430 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,3 +194,4 @@ FakesAssemblies/ | |
|
||
# Visual Studio 6 workspace options file | ||
*.opt | ||
*.jfm |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
212 changes: 196 additions & 16 deletions
212
src/Common/src/SSDTDevPack.Common/SSDTDevPack.Common.csproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="EnvDTE" version="8.0.1" targetFramework="net46" /> | ||
<package id="EnvDTE80" version="8.0.1" targetFramework="net46" /> | ||
<package id="MahApps.Metro" version="1.6.0-alpha001" targetFramework="net46" /> | ||
<package id="Microsoft.Data.Tools.Msbuild" version="10.0.61026" targetFramework="net45" /> | ||
<package id="Microsoft.VisualStudio.CoreUtility" version="15.0.26201" targetFramework="net45" /> | ||
<package id="Microsoft.VisualStudio.OLE.Interop" version="7.10.6070" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.Shell.Framework" version="15.0.26201" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.Shell.Interop" version="7.10.6071" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.Shell.Interop.10.0" version="10.0.30319" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.Shell.Interop.8.0" version="8.0.50727" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.Shell.Interop.9.0" version="9.0.30729" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.Text.Data" version="15.0.26201" targetFramework="net45" /> | ||
<package id="Microsoft.VisualStudio.Text.Logic" version="15.0.26201" targetFramework="net45" /> | ||
<package id="Microsoft.VisualStudio.Text.UI" version="15.0.26201" targetFramework="net45" /> | ||
<package id="Microsoft.VisualStudio.Text.UI.Wpf" version="15.0.26201" targetFramework="net45" /> | ||
<package id="Microsoft.VisualStudio.TextManager.Interop" version="7.10.6070" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.TextManager.Interop.8.0" version="8.0.50727" targetFramework="net46" /> | ||
<package id="Microsoft.VisualStudio.Utilities" version="15.0.26201" targetFramework="net46" /> | ||
<package id="NLog" version="5.0.0-beta07" targetFramework="net46" /> | ||
<package id="stdole" version="7.0.3301" targetFramework="net46" /> | ||
</packages> |
16 changes: 16 additions & 0 deletions
16
src/Common/src/SSDTDevPack.Common/tSQLtStubber/Parameter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Microsoft.SqlServer.Dac.Model; | ||
|
||
namespace SSDTDevPack.tSQLtStubber | ||
{ | ||
public class Parameter | ||
{ | ||
public string Name; | ||
public SqlDataType Type; | ||
|
||
public Parameter(string name, SqlDataType type) | ||
{ | ||
Name = name; | ||
Type = type; | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/Common/src/SSDTDevPack.Common/tSQLtStubber/ParametersHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Microsoft.SqlServer.TransactSql.ScriptDom; | ||
|
||
namespace SSDTDevPack.tSQLtStubber | ||
{ | ||
public class ParametersHelper | ||
{ | ||
public static ExecuteParameter CreateStoredProcedureParameter(string name, string value) | ||
{ | ||
return new ExecuteParameter | ||
{ | ||
Variable = new VariableReference | ||
{ | ||
Name = name | ||
}, | ||
ParameterValue = new StringLiteral {Value = value} | ||
}; | ||
} | ||
|
||
public static ExecuteParameter CreateStoredProcedureParameter(string name, int value) | ||
{ | ||
return new ExecuteParameter | ||
{ | ||
Variable = new VariableReference | ||
{ | ||
Name = name | ||
}, | ||
ParameterValue = new IntegerLiteral {Value = value.ToString()} | ||
}; | ||
} | ||
|
||
public static ExecuteParameter CreateStoredProcedureVariableParameter(string name) | ||
{ | ||
return new ExecuteParameter | ||
{ | ||
ParameterValue = new VariableReference | ||
{ | ||
Name = name | ||
} | ||
}; | ||
} | ||
|
||
public static ExecuteParameter CreateStoredProcedureParameter(string value) | ||
{ | ||
return new ExecuteParameter | ||
{ | ||
ParameterValue = new StringLiteral | ||
{ | ||
Value = value | ||
} | ||
}; | ||
} | ||
} | ||
} |
Oops, something went wrong.