markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 302 forks source link

Insert do not return a row but InsertAwaitable object and nothing is saved in DB #400

Open Draym opened 6 years ago

Draym commented 6 years ago

Hello,

I have just started to use Simple.Data but i can't make it works.

When I do a connection to my db and then :

var db = Database.OpenConnection("..."); User obj = new User(); var result = db.User.Insert(obj);

result is a type of InserAwaitable and not User type. Also there is no new row in my DB.

Did i forget to do something? what should i do with this InsertAwaitable?