I am trying to get the nextvalue of a sequence for my blazorserver.
The sequence was created long ago in the existing database.
And I want to retrive the value throught my newly developed blazorserver.
Model Builder
modelBuilder.HasSequence<long>("sequence_name");Code
var seq = _db.Database.ExecuteSqlRaw("select nextval('sequence_name')");Result
seq = -1What is the correct way to get the next value of the sequence?