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(")");