IsRecreateFL: Boolean;
IsRecreateFL: boolean;
The IsRecreateFL property determines whether to recreate the table external connections.
Available values:
True. Re-create external connections.
False. Do not re-create external connections.
Executing the example requires that the repository contains a table with the TABLE_L identifier.
Add links to the Metabase, Db system assemblies.
Sub UserProc;
Var
mb: IMetabase;
Table: ITable;
Begin
mb := MetabaseClass.Active;
Table := mb.ItemById("TABLE_L").Edit As ITable;
If Not Table.IsRecreateFL Then
Table.IsRecreateFL := True;
End If;
(Table As IMetabaseObject).Save;
End Sub UserProc;
After executing the example external connections in the TABLE_L table are recreated.
Executing the example requires that the repository contains a table with the TABLE_L identifier.
Imports Prognoz.Platform.Interop.Db;
…
[STAThread]
Public Shared Sub Main(Params: StartParams);
Var
mb: IMetabase;
Table: ITable;
FKeys: ITableForeignKeys;
Key: ITableForeignKey;
Begin
mb := Params.Metabase;
Table := mb.ItemById["TABLE_L"].Edit() As ITable;
FKeys := Table.ForeignKeys;
If FKeys.Count > 0 Then
If Not Table.IsRecreateFL Then
Table.IsRecreateFL := True;
End If;
(Table As IMetabaseObject).Save();
End Sub;
After executing the example external connections in the TABLE_L table are recreated.
See also: