Question

Insert class

Hi;

I use script to performed data management (insert update delete classes).

How can i get the identifiers for inserted records

 

Regards Tomek

Like 0

Like

2 comments

Hi, Tomasz.

You need setting an id manually before inserting data:

var id = Guid.NewGuid();

Insert insert =

                new Insert(userConnection).Into("Contact")

                .Set("Id", Column.Parameter(id))

                .Set("Name", Column.Parameter("Andrew Black"))...

Thanks

 

Show all comments