Reputation: 12487
Node n = new Node(){
Title = "test"
};
Nodes.InsertOnSubmit(n);
SubmitChanges();
n.Id.Dump();
It will dump 0.
In the database table, the row is inserted with the correct (auto-incremented) id. I'm just wondering if this is a setup issue since I'm using the IQ driver with MySql.
Thanks for any help!
Upvotes: 1
Views: 603
Reputation: 31004
Your code is correct - this is a limitation in the IQ driver.
Upvotes: 1