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

Commit 6f495c1

Browse files
committed
Use PropertyInvoker from SS.Text
1 parent 86e2e2f commit 6f495c1

File tree

5 files changed

+5
-124
lines changed

5 files changed

+5
-124
lines changed

src/ServiceStack.OrmLite/FieldDefinition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public class FieldDefinition
5858

5959
public ForeignKeyConstraint ForeignKey { get; set; }
6060

61-
public PropertyGetterDelegate GetValueFn { get; set; }
61+
public GetMemberDelegate GetValueFn { get; set; }
6262

63-
public PropertySetterDelegate SetValueFn { get; set; }
63+
public SetMemberDelegate SetValueFn { get; set; }
6464

6565
public object GetValue(object onInstance)
6666
{

src/ServiceStack.OrmLite/OrmLiteDialectProviderBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,15 +1005,15 @@ protected virtual object GetQuotedValueOrDbNull<T>(FieldDefinition fieldDef, obj
10051005
return unquotedVal;
10061006
}
10071007

1008-
static readonly ConcurrentDictionary<string, PropertyGetterDelegate> anonValueFnMap =
1009-
new ConcurrentDictionary<string, PropertyGetterDelegate>();
1008+
static readonly ConcurrentDictionary<string, GetMemberDelegate> anonValueFnMap =
1009+
new ConcurrentDictionary<string, GetMemberDelegate>();
10101010

10111011
protected virtual object GetAnonValue(FieldDefinition fieldDef, object obj)
10121012
{
10131013
var anonType = obj.GetType();
10141014
var key = anonType.Name + "." + fieldDef.Name;
10151015

1016-
var factoryFn = (Func<string, PropertyGetterDelegate>)(_ =>
1016+
var factoryFn = (Func<string, GetMemberDelegate>)(_ =>
10171017
anonType.GetProperty(fieldDef.Name).GetPropertyGetterFn());
10181018

10191019
var getterFn = anonValueFnMap.GetOrAdd(key, factoryFn);

src/ServiceStack.OrmLite/OrmLiteReadCommandExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323

2424
namespace ServiceStack.OrmLite
2525
{
26-
public delegate void PropertySetterDelegate(object instance, object value);
27-
public delegate object PropertyGetterDelegate(object instance);
28-
2926
public delegate object GetValueDelegate(int i);
3027

3128
public static class OrmLiteReadCommandExtensions

src/ServiceStack.OrmLite/PropertyInvoker.cs

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/ServiceStack.OrmLite/ReflectionPropertyInvoker.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)