Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Massive.Oracle.cs

Added "ToExpando()" to BuildCommands.
Change from Massive.cs (32b0dee)
  • Loading branch information...
commit 390c548b14865ac0fc5448d81efd40c60a8a4719 1 parent 565350a
@jthope jthope authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Massive.Oracle.cs
View
4 Massive.Oracle.cs
@@ -257,9 +257,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;
Please sign in to comment.
Something went wrong with that request. Please try again.