public static UniqueKey ( IRequest request, Field tableName ) : Field | ||
request | IRequest | |
tableName | Field | |
Результат | Field |
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()); }