Hi,
We are using XPO for getting data from an existing database . But when i try to get the schema information (for any table) we get no primary information. The code below shows the point where we get the problem :
DBTable[] tables = ((IDataStoreSchemaExplorer)s).GetStorageTables(tableName);
DBTable table = tables[0];
-- the table.PrimaryKey is always null no matter what are the real keys in database table.
I'm sending a little project with a complete code, the database I use to test is in a SQL Server , follows the configuration: Microsoft SQL Server Enterprise (64-bit), OS: Microsoft Windows NT 6.2 (9200), Plat. NT x64, Version 11.0.2100.60, Language English (EUA).
Thanks and Best Regards.
Hello Francisco.
Thank you for your report. I have replicated the issue and passed it to our developers for further research. We will update this ticket once we have any result.