Trying to deploy my project to Azure DevOps. I ran into following issue:
Once I used the ContextSchemaPath in Offline mode the mapping functions stop working.
The dbRecords don't contain the Table elements any more.
Add ContextSchema path to the type definition like that
type sql = SqlDataProvider<Common.DatabaseProviderTypes.SQLITE,
connectionString,
ResolutionPath = resolutionPath,
CaseSensitivityChange = Common.CaseSensitivityChange.ORIGINAL,
ContextSchemaPath = ContextSchemaPath>
Description
Trying to deploy my project to Azure DevOps. I ran into following issue: Once I used the ContextSchemaPath in Offline mode the mapping functions stop working. The dbRecords don't contain the Table elements any more.
Repro steps
Define mappers like described here: https://github.com/fsprojects/SQLProvider/blob/master/docs/content/core/mappers.fsx
Save ContextSchema
Add ContextSchema path to the type definition like that type sql = SqlDataProvider<Common.DatabaseProviderTypes.SQLITE, connectionString, ResolutionPath = resolutionPath, CaseSensitivityChange = Common.CaseSensitivityChange.ORIGINAL, ContextSchemaPath = ContextSchemaPath>
DbRecords are failing because table entitys are not containing the table elements Following Line would crash: https://github.com/fsprojects/SQLProvider/blob/master/docs/content/core/mappers.fsx#L39
Expected behavior
DbRecords should work also in Offline Mode.
Example
Any help would be appreciated!