Skip to content

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

@Draym

Description

@Draym

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions