I have created a HelperFunctions.cs file containing the following:
using Varigence.Languages.Biml.Table;
public static class HelperFunctions
{
public static string GetDisplayTableName(AstTableNode table)
{
return table.GetTag("DatabaseName").ToUpper() + "_" + table.Schema.Name.ToUpper() + "_" + table.Name.ToUpper();
}
}
However it does not recognise GetTag() and throws the error :
'AstTableNode' does not contain a definition for 'GetTag' and no accessible extension method 'GetTag' accepting a first argument of type 'AstTableNode' could be found (are you missing a using directive or an assembly reference?). What do I need to add to make this work? Thanks Jon
A static method needs to have the parameter prefixed with
this
SO_63828312.cs
My static Biml defines a table, which needs a schema, which needs a database, which needs a connection. All of that to get us to a table that has an AnnotationType of Tag with a value of AW.
SO_63828312.T0.biml
Tier 1 execution. This begins our dynamic tiering. Since there's only one, I don't explicitly give it one but if you have multiple tiers, you'd want to provide a directive.
Here I enumerate my Tables collection (defined in a preceding tier) and for each table I find, I write the table name and the tag value
SO_63828312.T1.biml