FransBouma / Massive

A small, happy, dynamic MicroORM for .NET that will love you forever.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About Primarykey type

meenw opened this issue · comments

commented

The primarykey type must be int? The data has been inserted into the database, but there is still an error.
((IDictionary<string, object>)toInsert)[this.PrimaryKeyField] = Convert.ToInt32(cmd.ExecuteScalar());