CurrentValue() public static method

public static CurrentValue ( IRequest query, Field tableName ) : Field
query IRequest
tableName Field
return Field
Ejemplo n.º 1
0
        private void AddSequenceFunctions()
        {
            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("table")
                     .WhenExecute(context => Simple(context, args => SystemFunctions.CurrentValue(context.Request, args[0])))
                     .ReturnsNumeric());
        }