Commit 4fff0866 authored by Ray Jezek's avatar Ray Jezek

Removed Id parameter when calling Table.Insert

"Id" is being removed most places in Rainbow, but not on Table.Insert. I
changed this to make it consistent with SqlCompactTable.Insert and
Table.Update.
parent fb04a9cb
...@@ -54,6 +54,7 @@ public string TableName ...@@ -54,6 +54,7 @@ public string TableName
{ {
var o = (object)data; var o = (object)data;
List<string> paramNames = GetParamNames(o); List<string> paramNames = GetParamNames(o);
paramNames.Remove("Id");
string cols = string.Join(",", paramNames); string cols = string.Join(",", paramNames);
string cols_params = string.Join(",", paramNames.Select(p => "@" + p)); string cols_params = string.Join(",", paramNames.Select(p => "@" + p));
......
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