From d9d8b7bf8049d7e18ecfe1d8ee2a0e674e469a3c Mon Sep 17 00:00:00 2001 From: DavidBetteridge Date: Wed, 17 Aug 2016 17:29:47 +0100 Subject: [PATCH] Fix to 172 --- Source/EntityFramework.Extended/Batch/SqlServerBatchRunner.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/EntityFramework.Extended/Batch/SqlServerBatchRunner.cs b/Source/EntityFramework.Extended/Batch/SqlServerBatchRunner.cs index 8f2fbb0..f720581 100644 --- a/Source/EntityFramework.Extended/Batch/SqlServerBatchRunner.cs +++ b/Source/EntityFramework.Extended/Batch/SqlServerBatchRunner.cs @@ -425,6 +425,9 @@ private static string GetSelectSql(ObjectQuery query, EntityMa if (selector.Length > 4) selector.Append((", ")); + if (propertyMap.PropertyName == "GUID") + propertyMap.PropertyName = "@GUID"; + selector.Append(propertyMap.PropertyName); } selector.Append(")");