Simple.Data: How do you insert new row into a table containing only a identity column?
-
28-06-2021 - |
Question
If you have a table containing only one column, and that column has an identity specification. How do you write the insert statement using simple.data? I've tried both the "DataBase.Table.Insert()" approach and the "expando with no properties approach"; neither work.
Solution
db.Table.Insert(columnName: null);
should work.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow