Skip to content

Commit 2e3aafc

Browse files
committed
- v3.2.2
1 parent e7b6174 commit 2e3aafc

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

Shuttle.Core.Data/IQuery.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ namespace Shuttle.Core.Data
55
public interface IQuery
66
{
77
void Prepare(IDbCommand command);
8-
IQuery AddParameterValue(IMappedColumn column, object value);
9-
}
8+
}
109
}

Shuttle.Core.Data/ProcedureQuery.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,33 @@
44

55
namespace Shuttle.Core.Data
66
{
7-
public class ProcedureQuery : IQuery
7+
public class ProcedureQuery : IQueryParemeter
88
{
9-
private readonly Dictionary<IMappedColumn, object> parameterValues;
10-
private readonly string procedure;
9+
private readonly Dictionary<IMappedColumn, object> _parameterValues;
10+
private readonly string _procedure;
1111

1212
public ProcedureQuery(string procedure)
1313
{
14-
this.procedure = procedure;
15-
parameterValues = new Dictionary<IMappedColumn, object>();
14+
_procedure = procedure;
15+
_parameterValues = new Dictionary<IMappedColumn, object>();
1616
}
1717

1818
public void Prepare(IDbCommand command)
1919
{
2020
Guard.AgainstNull(command, "command");
2121

22-
command.CommandText = procedure;
22+
command.CommandText = _procedure;
2323
command.CommandType = CommandType.StoredProcedure;
2424

25-
foreach (var pair in parameterValues)
25+
foreach (var pair in _parameterValues)
2626
{
2727
command.Parameters.Add(pair.Key.CreateDataParameter(command, pair.Value));
2828
}
2929
}
3030

3131
public IQuery AddParameterValue(IMappedColumn column, object value)
3232
{
33-
parameterValues.Add(column, value);
33+
_parameterValues.Add(column, value);
3434

3535
return this;
3636
}

Shuttle.Core.Data/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
[assembly: AssemblyTitle("Shuttle.Core.Data for .NET Framework 4.5.1")]
1414
#endif
1515

16-
[assembly: AssemblyVersion("3.2.1.0")]
16+
[assembly: AssemblyVersion("3.2.2.0")]
1717
[assembly: AssemblyCopyright("Copyright © Eben Roux 2010-2014")]
1818
[assembly: AssemblyProduct("Shuttle.Core")]
1919
[assembly: AssemblyCompany("Shuttle")]
2020
[assembly: AssemblyConfiguration("Release")]
21-
[assembly: AssemblyInformationalVersion("3.2.1")]
21+
[assembly: AssemblyInformationalVersion("3.2.2")]
2222
[assembly: ComVisible(false)]

Shuttle.Core.Data/RawQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Shuttle.Core.Data
66
{
7-
public class RawQuery : IQuery
7+
public class RawQuery : IQueryParemeter
88
{
99
private readonly Dictionary<IMappedColumn, object> parameterValues;
1010
private readonly string sql;

Shuttle.Core.Data/Shuttle.Core.Data.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
</ItemGroup>
6565
<ItemGroup>
6666
<Compile Include="ConnectionStringService.cs" />
67+
<Compile Include="IQueryParemeter.cs" />
6768
<Compile Include="DatabaseContext.cs" />
6869
<Compile Include="ThreadStaticDatabaseContextCache.cs" />
6970
<Compile Include="DatabaseContextCollection.cs" />

0 commit comments

Comments
 (0)