Commit 307ab7ea authored by Alex Wiese's avatar Alex Wiese Committed by Nick Craver

Update SqlMapperExtensions.Async.cs

#418 - `Update` was fixed but `UpdateAsync` was not fixed.
parent 8916ccfd
...@@ -232,7 +232,7 @@ public static partial class SqlMapperExtensions ...@@ -232,7 +232,7 @@ public static partial class SqlMapperExtensions
} }
} }
var keyProperties = KeyPropertiesCache(type); var keyProperties = KeyPropertiesCache(type).ToList();
var explicitKeyProperties = ExplicitKeyPropertiesCache(type); var explicitKeyProperties = ExplicitKeyPropertiesCache(type);
if (keyProperties.Count == 0 && explicitKeyProperties.Count == 0) if (keyProperties.Count == 0 && explicitKeyProperties.Count == 0)
throw new ArgumentException("Entity must have at least one [Key] or [ExplicitKey] property"); throw new ArgumentException("Entity must have at least one [Key] or [ExplicitKey] property");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment