Beispiel #1
0
        private long GetNextIdForUser()
        {
            var getIdsCommand = new NextIdentityForCommand(Conventions.CollectionNameFor <TUser>(docStore));

            using var dbSession = docStore.OpenSession();
            dbSession.Advanced.RequestExecutor.Execute(getIdsCommand, dbSession.Advanced.Context);
            return(getIdsCommand.Result);
        }