26 if (routineConfig == null)
27 throw new InvalidOperationException();
34 if (routineConfig == null)
35 throw new InvalidOperationException();
47 return configuration.
WithParameter(config => config.Named(name).OfType(type));
72 return configuration.
WithParameter(config => config.Named(name).OfType(type).Unbounded());
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static IFunctionConfiguration ReturnsBinary(this IFunctionConfiguration configuration)
static IFunctionConfiguration WithStringParameter(this IFunctionConfiguration configuration, string name)
static IFunctionConfiguration ReturnsBoolean(this IFunctionConfiguration configuration)
static IFunctionConfiguration WithAlias(this IFunctionConfiguration configuration, string alias)
static readonly SqlType DynamicType
A special SqlType that is used to mark an argument of a function as dynamic.
IFunctionConfiguration Named(ObjectName name)
IFunctionConfiguration OfType(FunctionType functionType)
A system routine that returns a value at the end of its execution.
static BooleanType Boolean()
IFunctionConfiguration WithAlias(ObjectName alias)
static IFunctionConfiguration ReturnsNumeric(this IFunctionConfiguration configuration)
static IFunctionConfiguration Named(this IFunctionConfiguration configuration, string name)
static BinaryType Binary(int maxSize)
Describes the name of an object within a database.
static IFunctionConfiguration WithParameter(this IFunctionConfiguration configuration, string name, SqlType type)
static IFunctionConfiguration WithBooleanParameter(this IFunctionConfiguration configuration, string name)
static IFunctionConfiguration WithUnoundedParameter(this IFunctionConfiguration configuration, string name, SqlType type)
static IFunctionConfiguration ReturnsDateTime(this IFunctionConfiguration configuration)
static NumericType Numeric()
static DateType DateTime()
static IFunctionConfiguration ReturnsString(this IFunctionConfiguration configuration)
FunctionType
The different type of a function.
Defines the properties of a specific SQL Type and handles the values compatible.
IFunctionConfiguration ReturnsType(Func< InvokeContext, SqlType > returns)
static IFunctionConfiguration WithDateTimeParameter(this IFunctionConfiguration configuration, string name)
static IFunctionConfiguration WithDynamicParameter(this IFunctionConfiguration configuration, string name)
static StringType String()
static IFunctionConfiguration OfAggregateType(this IFunctionConfiguration configuration)
static IFunctionConfiguration WithNumericParameter(this IFunctionConfiguration configuration, string name)
IFunctionConfiguration WithParameter(Action< IFunctionParameterConfiguration > config)
static IFunctionConfiguration ReturnsType(this IFunctionConfiguration configuration, SqlType type)