Controlling-access-to-tables-and-views.md
... ...
@@ -1,28 +1 @@
1
-To control access to the data sources you can use [[AdHocSettings.ViewsOnly|/API/CodeSamples/ViewsOnly]] setting or [[AdHocSettings.VisibleDataSources|/API/CodeSamples/VisibleDataSources]] property.
2
-
3
-If the ``ViewsOnly`` is set to _true_: only Views will be visible at the Data Sources tab.
4
-
5
-The VisibleDataSources property is an array of table names. Only tables in this array will be visible at the Data Sources tab.
6
-
7
-_Note: DO NOT use ViewsOnly and VisibleDataSources at the same time!_
8
-
9
-**Using ViewsOnly:**
10
-
11
-C#
12
-```csharp
13
-Izenda.AdHoc.AdHocSettings.ViewsOnly = true;
14
-```
15
-VB.NET
16
-```visualbasic
17
-Izenda.AdHoc.AdHocSettings.ViewsOnly = True
18
-```
19
-**Using VisibleDataSources:**
20
-
21
-C#
22
-```csharp
23
- Izenda.AdHoc.AdHocSettings.VisibleDataSources = new string[] { "Products", "Categories" };
24
-```
25
-VB.NET
26
-```visualbasic
27
- Izenda.AdHoc.AdHocSettings.VisibleDataSources = New String() { "Products", "Categories" }
28
-```
... ...
\ No newline at end of file
0
+Re-purpose this page.
... ...
\ No newline at end of file