Skip to content

Commit 4594440

Browse files
MarimerLLC#1789 Support legacy Child_Create method calls
1 parent c4190c1 commit 4594440

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/Csla.Shared/Reflection/ServiceProviderMethodCaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,15 @@ public static ServiceProviderMethodInfo FindDataPortalMethod<T>(Type targetType,
8080
candidates = factoryType.GetMethods(_factoryBindingAttr).Where(m => m.Name == factoryInfo.DeleteMethodName);
8181
else if (typeOfOperation == typeof(ExecuteAttribute))
8282
candidates = factoryType.GetMethods(_factoryBindingAttr).Where(m => m.Name == factoryInfo.ExecuteMethodName);
83+
else if (typeOfOperation == typeof(CreateChildAttribute))
84+
candidates = targetType.GetMethods(_bindingAttr).Where(m => m.Name == "Child_Create");
8385
else
8486
candidates = factoryType.GetMethods(_factoryBindingAttr).Where(m => m.Name == factoryInfo.UpdateMethodName);
8587
}
88+
else if (typeOfOperation == typeof(CreateChildAttribute))
89+
{
90+
candidates = targetType.GetMethods(_bindingAttr).Where(m => m.Name == "Child_Create");
91+
}
8692
}
8793
else
8894
{

0 commit comments

Comments
 (0)