CurrentKey() public static method

public static CurrentKey ( IRequest request, Field tableName ) : Field
request IRequest
tableName Field
return Field
        private void SequenceFunctions()
        {
            Register(config => config.Named("uniquekey")
                     .WithStringParameter("table")
                     .WhenExecute(context => Simple(context, args => SystemFunctions.UniqueKey(context.Request, args[0])))
                     .ReturnsNumeric());

            Register(config => config.Named("curval")
                     .WithStringParameter("sequence")
                     .WhenExecute(context => Simple(context, args => SystemFunctions.CurrentValue(context.Request, args[0])))
                     .ReturnsNumeric());

            Register(config => config.Named("nextval")
                     .WithParameter("sequence", PrimitiveTypes.String())
                     .WhenExecute(context => Simple(context, args => SystemFunctions.NextValue(context.Request, args[0])))
                     .ReturnsNumeric());

            Register(config => config
                     .Named("curkey")
                     .WithStringParameter("table")
                     .WhenExecute(context => Simple(context, args => SystemFunctions.CurrentKey(context.Request, args[0])))
                     .ReturnsNumeric());
        }