Vidarls/Simple.Data.Mysql — Issue #9: Insert() returns null
Author: nidheeshdas
Created: 2012-02-14 12:06:39+00:00
State: open

var db = Database.Open();
var user = db.Users.Insert(name: "abs" , age: 21 );

Insert() returns null

output of show columns in users
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+----------------+
| name | varchar(255) | YES | | NULL | |
| age | int(11) | YES | | NULL | |
| Id | int(11) | NO | PRI | NULL | auto_increment |
+-------+--------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)