11 public override string SchemaName {
16 if (functionName.
Parent == null)
19 return base.NormalizeName(functionName);
24 var funcResult = func(args);
25 return context.
Result(funcResult);
29 Register(config => config.Named(
"to_xml")
30 .WithStringParameter(
"s")
34 Register(config => config.Named(
"appendchildxml")
35 .WithXmlParameter(
"obj")
36 .WithStringParameter(
"xpath")
37 .WithXmlParameter(
"value")
41 Register(config => config.Named(
"extract")
42 .WithXmlParameter(
"node")
43 .WithStringParameter(
"xpath")
47 Register(config => config.Named(
"extractvalue")
48 .WithXmlParameter(
"node")
49 .WithStringParameter(
"xpath")
53 Register(config => config.Named(
"existsxml")
54 .WithXmlParameter(
"node")
55 .WithStringParameter(
"xpath")
56 .WhenExecute(context => Simple(context, args =>
XmlFunctions.
Exists(args[0], args[1])))
59 Register(config => config.Named(
"insertbeforexml")
60 .WithXmlParameter(
"node")
61 .WithStringParameter(
"xpath")
62 .WithXmlParameter(
"value")
66 Register(config => config.Named(
"insertchildxml")
67 .WithXmlParameter(
"node")
68 .WithStringParameter(
"xpath")
69 .WithXmlParameter(
"child")
70 .WithXmlParameter(
"value")
74 Register(config => config.Named(
"updatexml")
75 .WithXmlParameter(
"node")
76 .WithStringParameter(
"xpath")
77 .WithDynamicParameter(
"value")
78 .WhenExecute(context => Simple(context, args =>
XmlFunctions.
Update(args[0], args[1], args[2])))
static DataObject InsertChild(DataObject obj, DataObject xpath, DataObject child, DataObject value)
static DataObject Extract(DataObject obj, DataObject xpath)
static DataObject InsertBefore(DataObject obj, DataObject xpath, DataObject value)
static readonly SqlType DynamicType
A special SqlType that is used to mark an argument of a function as dynamic.
A system routine that returns a value at the end of its execution.
Describes the name of an object within a database.
static DataObject ExtractValue(DataObject obj, DataObject xpath)
static DataObject Exists(DataObject obj, DataObject xpath)
static DataObject XmlType(DataObject obj)
DataObject[] EvaluatedArguments
Represents the result of the execution of a routine.
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
override ObjectName NormalizeName(ObjectName functionName)
Provides utilities and properties for handling the SYSTEN schema of a database.
ObjectName Parent
Gets the parent reference of the current one, if any or null if none.
InvokeResult Result(DataObject value)
string Name
Gets the name of the object being referenced.
const string Name
The name of the system schema that contains tables referring to system information.
static InvokeResult Simple(InvokeContext context, Func< DataObject[], DataObject > func)
static SqlXmlNode Update(SqlXmlNode node, string xpath, DataObject value)
static DataObject AppendChild(DataObject obj, DataObject xpath, DataObject value)