Skip to content

Commit

Permalink
- v3.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
eben-roux committed Nov 11, 2015
1 parent c3f0cd8 commit 0cfb9bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Shuttle.Core.Data/ProcedureQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public IQuery AddParameterValue(IMappedColumn column, object value)
return this;
}

public static IQuery Create(string procedure)
public static IQueryParemeter Create(string procedure)
{
return new ProcedureQuery(procedure);
}
Expand Down
4 changes: 2 additions & 2 deletions Shuttle.Core.Data/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
[assembly: AssemblyTitle("Shuttle.Core.Data for .NET Framework 4.5.1")]
#endif

[assembly: AssemblyVersion("3.2.3.0")]
[assembly: AssemblyVersion("3.2.4.0")]
[assembly: AssemblyCopyright("Copyright © Eben Roux 2010-2014")]
[assembly: AssemblyProduct("Shuttle.Core")]
[assembly: AssemblyCompany("Shuttle")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyInformationalVersion("3.2.3")]
[assembly: AssemblyInformationalVersion("3.2.4")]
[assembly: ComVisible(false)]
10 changes: 5 additions & 5 deletions Shuttle.Core.Data/RawQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ namespace Shuttle.Core.Data
{
public class RawQuery : IQueryParemeter
{
private readonly Dictionary<IMappedColumn, object> parameterValues;
private readonly Dictionary<IMappedColumn, object> _parameterValues;
private readonly string sql;

public RawQuery(string sql)
{
this.sql = sql;
parameterValues = new Dictionary<IMappedColumn, object>();
_parameterValues = new Dictionary<IMappedColumn, object>();
}

public void Prepare(IDbCommand command)
Expand All @@ -22,20 +22,20 @@ public void Prepare(IDbCommand command)
command.CommandText = sql;
command.CommandType = CommandType.Text;

foreach (var pair in parameterValues)
foreach (var pair in _parameterValues)
{
command.Parameters.Add(pair.Key.CreateDataParameter(command, pair.Value));
}
}

public IQuery AddParameterValue(IMappedColumn column, object value)
{
parameterValues.Add(column, value);
_parameterValues.Add(column, value);

return this;
}

public static IQuery Create(string sql, params object[] args)
public static IQueryParemeter Create(string sql, params object[] args)
{
return new RawQuery(string.Format(sql, args));
}
Expand Down

0 comments on commit 0cfb9bf

Please sign in to comment.