I have a table in AF Library with the const data (like library).
I want to get the data from the table in ASP.Net C#. How to do it?
Thanks for advise.
You can use the AFTable Class and the AFTable.Table Property has the column and row data.
Thx, but I want only to read the data from a table like from the library.I want to have a table in one place and use it in many applications.
Let's call that one place of the table its gospel location. Do you want that gospel location to be an internal AFTable in a specific AFDatabase on a specific PISystem? Or is the gospel location an external table in another database server (Oracle, SQL Server, etc.)? If the gospel location is an internal AFTable, then your ASP.NET application must be written with a minimum target of .NET 4.6.2, and Asp.NET Core cannot be used. If the gospel location is an external table, then it has nothing to do with AF SDK, and you may possible be able to use .NET Core instead of full .NET Framework.
The answer by Sebastien Raposo gives you the links that you will need to explore. The AFTable has a Table property and that Table is a System.Data.Table. Once you've extracted the Table property, there is nothing to do with AF. It's all System.Data from there.
Here's a post with some sample code:
Working with Tables using the PI AF SDK
Retrieving data ...