wtulloch / Blazor.IndexedDB

A Blazor library for accessing IndexedDB
MIT License
140 stars 46 forks source link

Added extension method that stores returning the ID #41

Open joseangelmt opened 1 year ago

joseangelmt commented 1 year ago

With this extension method it is possible to obtain the ID of the last record added as for example:

var newRecord = new StoreRecord<Person>
        {
            Storename ="Employees",
            Data = NewPerson
        };

var id = await DbManager.AddRecordReturningId(newRecord);