You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.NotEqual(expectedOutput,actualOutput);// Auto-translation of DbType.Time to DbType.DateTime breaks output
272
+
}
273
+
274
+
[Theory]
275
+
[MemberData(nameof(GetParamPrefixes))]
276
+
publicvoidTableQueryWithDateTime(stringat)
277
+
{
278
+
// arrange
279
+
_commandText="select 1 from dbo.Table where x = @x, y = @y";
280
+
conststringexpectedOutput="DECLARE @x datetime = '2017-01-30T05:13:21',\r\n @y datetime = '2001-01-01T18:12:11';\r\n\r\nselect 1 from dbo.Table where x = @x, y = @y;";
_commandText="select 1 from dbo.Table where x = @x, y = @y";
298
+
conststringexpectedOutput="DECLARE @x datetime2 = '2017-01-30T05:13:21',\r\n @y datetime2 = '2001-01-01T18:12:11';\r\n\r\nselect 1 from dbo.Table where x = @x, y = @y;";
_commandText="select 1 from dbo.Table where x = @x, y = @y";
316
+
conststringexpectedOutput="DECLARE @x datetimeoffset = '2017-01-30T05:13:21+04:30',\r\n @y datetimeoffset = '2001-01-01T18:12:11-04:30';\r\n\r\nselect 1 from dbo.Table where x = @x, y = @y;";
@@ -325,6 +415,24 @@ public void TableQueryWithDecimalZeroPrecision(string at)
325
415
Assert.Equal(expectedOutput,actualOutput);
326
416
}
327
417
418
+
[Theory]
419
+
[MemberData(nameof(GetParamPrefixes))]
420
+
publicvoidTableQueryWithXml(stringat)
421
+
{
422
+
// arrange
423
+
_commandText="select 1 from dbo.Table where x = @x, y = @y";
424
+
conststringexpectedOutput="DECLARE @x xml = '<root></root>',\r\n @y xml = '<root><node/></root>';\r\n\r\nselect 1 from dbo.Table where x = @x, y = @y;";
0 commit comments