This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
tests/ServiceStack.OrmLite.Tests/UseCase Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ public class ArtistTrackSqlExpressions : ArtistTrackTestBase
11
11
[ Test ]
12
12
public void Can_OrderBy_Column_Index ( )
13
13
{
14
+ var hold = OrmLiteConfig . StripUpperInLike ;
15
+ OrmLiteConfig . StripUpperInLike = false ;
14
16
using ( var db = CreateArtistAndTrackTablesWithData ( OpenDbConnection ( ) ) )
15
17
{
16
18
var q = db . From < Track > ( )
@@ -25,11 +27,14 @@ public void Can_OrderBy_Column_Index()
25
27
var result = db . Dictionary < int , int > ( q ) ;
26
28
Assert . That ( result [ 1993 ] , Is . EqualTo ( 2 ) ) ;
27
29
}
30
+ OrmLiteConfig . StripUpperInLike = hold ;
28
31
}
29
32
30
33
[ Test ]
31
34
public void Can_Order_by_Property_Alias ( )
32
35
{
36
+ var hold = OrmLiteConfig . StripUpperInLike ;
37
+ OrmLiteConfig . StripUpperInLike = false ;
33
38
using ( var db = CreateArtistAndTrackTablesWithData ( OpenDbConnection ( ) ) )
34
39
{
35
40
var q = db . From < Track > ( )
@@ -44,6 +49,7 @@ public void Can_Order_by_Property_Alias()
44
49
var result = db . Dictionary < int , int > ( q ) ;
45
50
Assert . That ( result [ 1993 ] , Is . EqualTo ( 2 ) ) ;
46
51
}
52
+ OrmLiteConfig . StripUpperInLike = hold ;
47
53
}
48
54
49
55
[ Test ]
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ public class ExpressionsAuthorTests : OrmLiteTestBase
33
33
[ Test ]
34
34
public void Run_Expressions_Author_tests ( )
35
35
{
36
+ var hold = OrmLiteConfig . StripUpperInLike ;
37
+ OrmLiteConfig . StripUpperInLike = false ;
38
+
36
39
using ( var db = OpenDbConnection ( ) )
37
40
{
38
41
var dialect = OrmLiteConfig . DialectProvider ;
@@ -399,6 +402,8 @@ public void Run_Expressions_Author_tests()
399
402
"Expressions test in: {0}" . Print ( t3 - t2 ) ;
400
403
"All test in : {0}" . Print ( t3 - t1 ) ;
401
404
}
405
+
406
+ OrmLiteConfig . StripUpperInLike = hold ;
402
407
}
403
408
404
409
public List < Author > GetAuthors ( )
You can’t perform that action at this time.
0 commit comments