Skip to content

Commit f0bb92a

Browse files
Merge pull request MarimerLLC#1828 from rockfordlhotka/1789-create-child
Support legacy Child_Create method calls
2 parents c4190c1 + 4594440 commit f0bb92a

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)