Permalink
Browse files

Update Massive.cs

Added "ToExpando()" to BuildCommands.
  • Loading branch information...
1 parent b181644 commit 32b0deec06cdcba74f6fa3f413a304a26d18c9ab @robconery robconery committed Sep 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Massive.cs
View
@@ -247,9 +247,9 @@ public class DynamicModel : DynamicObject {
var commands = new List<DbCommand>();
foreach (var item in things) {
if (HasPrimaryKey(item)) {
- commands.Add(CreateUpdateCommand(item, GetPrimaryKey(item)));
+ commands.Add(CreateUpdateCommand(item.ToExpando(), GetPrimaryKey(item)));
} else {
- commands.Add(CreateInsertCommand(item));
+ commands.Add(CreateInsertCommand(item.ToExpando()));
}
}
return commands;

0 comments on commit 32b0dee

Please sign in to comment.