From a7072c0fdc3bcd7a3f3348345413381ca68e0c00 Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Sun, 9 Jun 2024 18:39:43 +0200 Subject: [PATCH] fix test to check for EntityAssociationAttribute --- src/OpenRiaServices.Tools/Test/CodeGenExternalAttributeTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenRiaServices.Tools/Test/CodeGenExternalAttributeTests.cs b/src/OpenRiaServices.Tools/Test/CodeGenExternalAttributeTests.cs index d272941d5..c2ec0a2d9 100644 --- a/src/OpenRiaServices.Tools/Test/CodeGenExternalAttributeTests.cs +++ b/src/OpenRiaServices.Tools/Test/CodeGenExternalAttributeTests.cs @@ -54,7 +54,7 @@ public void CodeGen_External_Entity_EFtoPOCO() TestHelper.AssertGeneratedCodeContains( generatedCode, "private EntityRef _personalDetails_MarkedAsExternal;", - "[Association(\"Employee_PersonalDetails\", \"EmployeeID\", \"UniqueID\", IsForeignKey=true)] [ExternalReference()]", + "[EntityAssociation(\"Employee_PersonalDetails\", new string[] { \"EmployeeID\"}, new string[] { \"UniqueID\"}, IsForeignKey=true)] [ExternalReference()]", "public global::DataTests.Scenarios.EF.Northwind.PersonalDetails PersonalDetails_MarkedAsExternal", "private bool FilterPersonalDetails_MarkedAsExternal(global::DataTests.Scenarios.EF.Northwind.PersonalDetails entity)"); }