Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Draym opened this issue Jul 27, 2018 · 0 comments

Comments

@Draym
Copy link

Draym commented Jul 27, 2018

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?

@Draym Draym changed the title Insert do not return a row but InserAwaitable object and nothing is saved in DB Insert do not return a row but InsertAwaitable object and nothing is saved in DB Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant