Skip to content

Commit

Permalink
moved all code into 2 projects to save reference hell!
Browse files Browse the repository at this point in the history
  • Loading branch information
GoEddie committed May 3, 2017
1 parent 7539a3d commit 79aaf89
Show file tree
Hide file tree
Showing 125 changed files with 1,430 additions and 425 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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.
212 changes: 196 additions & 16 deletions src/Common/src/SSDTDevPack.Common/SSDTDevPack.Common.csproj

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions src/Common/src/SSDTDevPack.Common/packages.config
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 src/Common/src/SSDTDevPack.Common/tSQLtStubber/Parameter.cs
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 src/Common/src/SSDTDevPack.Common/tSQLtStubber/ParametersHelper.cs
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
}
};
}
}
}
Loading

0 comments on commit 79aaf89

Please sign in to comment.