Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 015263c

Browse files
authored
Merge pull request #572 from xplicit/fix_build
Fix build on .NET Core
2 parents 84410b0 + 9cad764 commit 015263c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/ServiceStack.OrmLite.Tests/CustomSqlExpressionTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Data;
44
using System.Linq;
55
using System.Linq.Expressions;
6+
using System.Reflection;
67
using NUnit.Framework;
78
using ServiceStack.DataAnnotations;
89
using ServiceStack.OrmLite.Sqlite;
@@ -112,7 +113,7 @@ private ModelDefinition GetCurrentTableDef(ModelDefinition tableDef, string memb
112113
var nonInheritedProperties = GetCurrentPropertiesWithoutBase(tableDef);
113114
while (curType != null && !nonInheritedProperties.Contains(memberName))
114115
{
115-
curType = curType.BaseType;
116+
curType = curType.BaseType();
116117
nonInheritedProperties = GetCurrentPropertiesWithoutBase(curType?.GetModelMetadata());
117118
}
118119

tests/ServiceStack.OrmLite.Tests/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"System.Runtime.Serialization.Xml": "4.*",
3939
"System.Reflection": "4.*",
4040
"System.Reflection.Primitives": "4.*",
41-
"System.Runtime.Serialization.Primitives": "4.*"
41+
"System.Runtime.Serialization.Primitives": "4.*",
42+
"System.Reflection.TypeExtensions": "4.*"
4243
}
4344
}
4445
}

0 commit comments

Comments
 (0)