Skip to content

Commit 170dae2

Browse files
committed
Wrapping up pull requests into NuGet release 0.9.7.1
1 parent 861ecad commit 170dae2

10 files changed

Lines changed: 27 additions & 17 deletions

File tree

CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
// COM, set the ComVisible attribute to true on that type.
2020
[assembly: ComVisible(false)]
2121

22-
[assembly: AssemblyVersion("0.9.6.2")]
23-
[assembly: AssemblyFileVersion("0.9.6.2")]
22+
[assembly: AssemblyVersion("0.9.7.1")]
23+
[assembly: AssemblyFileVersion("0.9.7.1")]
2424

Simple.Data.Ado/ProcedureExecutor.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ private static void SetParameters(Procedure procedure, IDbCommand cmd, IDictiona
118118
cmdParameter.Direction = parameter.Direction;
119119
//Tim Cartwright: I added size and dbtype so inout/out params would function properly.
120120
//not setting the proper dbtype and size with out put parameters causes the exception: "Size property has an invalid size of 0"
121-
cmdParameter.DbType = parameter.Dbtype;
121+
// Mark: Just adding a quick check here so that if the Provider-specific type has been set by setting the value, this will not
122+
// override that.
123+
if (cmdParameter.DbType != parameter.Dbtype)
124+
{
125+
cmdParameter.DbType = parameter.Dbtype;
126+
}
122127
cmdParameter.Size = parameter.Size;
123128
cmd.Parameters.Add(cmdParameter);
124129
i++;

Simple.Data.Ado/QueryBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private string ToOrderByDirective(OrderByClause item)
175175
{
176176
var col = _table.FindColumn(item.Reference.GetName());
177177
var direction = item.Direction == OrderByDirection.Descending ? " DESC" : string.Empty;
178-
return col.QuotedName + direction;
178+
return col.QualifiedName + direction;
179179
}
180180

181181
private string GetSelectClause(ObjectName tableName)

Simple.Data.Ado/Schema/Column.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ public string QuotedName
5959
get { return _table.DatabaseSchema.QuoteObjectName(_actualName); }
6060
}
6161

62+
public string QualifiedName
63+
{
64+
get { return _table.QualifiedName + "." + QuotedName; }
65+
}
66+
6267
public bool IsIdentity
6368
{
6469
get { return _isIdentity; }

Simple.Data.Ado/Simple.Data.Ado.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Simple.Data.Ado</id>
5-
<version>0.9.6.2</version>
5+
<version>0.9.7.1</version>
66
<authors>Mark Rendle</authors>
77
<owners>Mark Rendle</owners>
88
<description>ADO Adapter for the Simple.Data data access library.</description>
@@ -12,7 +12,7 @@
1212
<tags>sqlserver database data ado .net40</tags>
1313
<language>en-us</language>
1414
<dependencies>
15-
<dependency id="Simple.Data.Core" version="0.9.6.2" />
15+
<dependency id="Simple.Data.Core" version="0.9.7.1" />
1616
</dependencies>
1717
</metadata>
1818
</package>

Simple.Data.BehaviourTest/NaturalNamingTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,31 @@ public void DotNetNamingIsCorrectlyResolvedInFind()
3333
public void DotNetNamingIsCorrectlyResolvedInOrderBy()
3434
{
3535
_db.Customers.FindAll(_db.Customers.CustomerName == "Arthur").OrderByCustomerName().ToList<dynamic>();
36-
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [customer_name]");
36+
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [dbo].[customers].[customer_name]");
3737
Parameter(0).Is("Arthur");
3838
}
3939

4040
[Test]
4141
public void DotNetNamingIsCorrectlyResolvedInOrderByExpression()
4242
{
4343
_db.Customers.FindAll(_db.Customers.CustomerName == "Arthur").OrderBy(_db.Customers.CustomerName).ToList<dynamic>();
44-
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [customer_name]");
44+
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [dbo].[customers].[customer_name]");
4545
Parameter(0).Is("Arthur");
4646
}
4747

4848
[Test]
4949
public void SortOrderIsCorrectlyResolvedInOrderByExpression()
5050
{
5151
_db.Customers.FindAll(_db.Customers.CustomerName == "Arthur").OrderBy(_db.Customers.CustomerName, OrderByDirection.Descending).ToList<dynamic>();
52-
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [customer_name] desc");
52+
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [dbo].[customers].[customer_name] desc");
5353
Parameter(0).Is("Arthur");
5454
}
5555

5656
[Test]
5757
public void SortOrderIsCorrectlyResolvedInOrderByThenByExpression()
5858
{
5959
_db.Customers.FindAll(_db.Customers.CustomerName == "Arthur").OrderBy(_db.Customers.CustomerName, OrderByDirection.Descending).ThenBy(_db.Customers.CustomerId, OrderByDirection.Ascending).ToList<dynamic>();
60-
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [customer_name] desc, [customerid]");
60+
GeneratedSqlIs("select [dbo].[customers].[customerid],[dbo].[customers].[customer_name] from [dbo].[customers] where [dbo].[customers].[customer_name] = @p1 order by [dbo].[customers].[customer_name] desc, [dbo].[customers].[customerid]");
6161
Parameter(0).Is("Arthur");
6262
}
6363

Simple.Data.Mocking/Simple.Data.Mocking.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
44
<id>Simple.Data.Mocking</id>
5-
<version>0.9.6.2</version>
5+
<version>0.9.7.1</version>
66
<authors>Mark Rendle</authors>
77
<owners>Mark Rendle</owners>
88
<description>XML-based Mocking adapter for the Simple.Data data access library.</description>
@@ -12,7 +12,7 @@
1212
<tags>database data .net40</tags>
1313
<language>en-us</language>
1414
<dependencies>
15-
<dependency id="Simple.Data.Ado" version="0.9.6.2" />
15+
<dependency id="Simple.Data.Ado" version="0.9.7.1" />
1616
</dependencies>
1717
</metadata>
1818
</package>

Simple.Data.SqlCe40/Simple.Data.SqlCe40.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
44
<id>Simple.Data.SqlCompact40</id>
5-
<version>0.9.6.2</version>
5+
<version>0.9.7.1</version>
66
<authors>Mark Rendle</authors>
77
<owners>Mark Rendle</owners>
88
<description>SQL Server Compact 4.0 ADO provider for the Simple.Data data access library.</description>
@@ -12,7 +12,7 @@
1212
<tags>sqlserver compact sqlce database data ado .net40</tags>
1313
<language>en-us</language>
1414
<dependencies>
15-
<dependency id="Simple.Data.Ado" version="0.9.6.2" />
15+
<dependency id="Simple.Data.Ado" version="0.9.7.1" />
1616
</dependencies>
1717
</metadata>
1818
</package>

Simple.Data.SqlServer/Simple.Data.SqlServer.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
44
<id>Simple.Data.SqlServer</id>
5-
<version>0.9.6.2</version>
5+
<version>0.9.7.1</version>
66
<authors>Mark Rendle</authors>
77
<owners>Mark Rendle</owners>
88
<description>SQL Server ADO provider for the Simple.Data data access library.</description>
@@ -12,7 +12,7 @@
1212
<tags>sqlserver database data ado .net40</tags>
1313
<language>en-us</language>
1414
<dependencies>
15-
<dependency id="Simple.Data.Ado" version="0.9.6.2" />
15+
<dependency id="Simple.Data.Ado" version="0.9.7.1" />
1616
</dependencies>
1717
</metadata>
1818
</package>

Simple.Data/Simple.Data.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Simple.Data.Core</id>
5-
<version>0.9.6.2</version>
5+
<version>0.9.7.1</version>
66
<authors>Mark Rendle</authors>
77
<owners>Mark Rendle</owners>
88
<licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>

0 commit comments

Comments
 (0)