API/CodeSamples/ShowJoinAliasTextboxes.md
... ...
@@ -79,11 +79,13 @@ Using Join Alias Textbox, user can distinguish the joined tables more clearly
79 79
![JoinAlias](/API/CodeSamples/ShowJoinAliasTextboxes/JoinAlias2.png)
80 80
81 81
82
-## How to implement 'join alias' via hardcoding
83
-
84
-Below is a sample code that shows how to hardcode aliasing specific table names
82
+## How to hardcode 'join ali
83
+Below is a sample code that shows how to hardcode aliasing specific table names.
85 84
86 85
```csharp
86
+ public class CustomAdHocConfig : FileSystemAdHocConfig {
87
+public static void InitializeReporting() {
88
+...}
87 89
public override void PreSaveReportSet(string name, ReportSet reportSet) {
88 90
//the collection of table names and the associated alias
89 91
Dictionary<string, string> tableNameToAlias = new Dictionary<string, string>();
... ...
@@ -133,7 +135,7 @@ public override void PreSaveReportSet(string name, ReportSet reportSet) {
133 135
default:
134 136
return tableName.Replace("[", "").Replace("]", "").Replace(".", "_");
135 137
}
136
-
138
+}// End of CustomAdHocConfig class
137 139
138 140
```
139 141