Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with Vonk.Facade.Relational, R4, .Net 8.0 Parameter Detection Not Working #2746

Closed
charlejc opened this issue Mar 26, 2024 Discussed in #2745 · 2 comments
Closed

Help with Vonk.Facade.Relational, R4, .Net 8.0 Parameter Detection Not Working #2746

charlejc opened this issue Mar 26, 2024 Discussed in #2745 · 2 comments

Comments

@charlejc
Copy link

Discussed in #2745

Originally posted by charlejc March 26, 2024
I'm trying to update to .Net 8.0 and Vonk.Facade.Relation 4.7.1 and other Vonk 4.7.1 packages. I've implemented the QueryFactory patern and inherited code like the example below.

My problem is that the parameter detection does not seem to be working and the only override function that is being called is the one:

`
public class ObservationQueryFactory : RelationalQueryFactory<myObservation, myRelationalQuery>, IResourceSpecificQueryFactory
{
public override myRelationalQuery AddValueFilter(string parameterName, TokenValue value)
{
// This code is not being called....
if(String.Compare(parameterName, VonkConstants.ParameterNames.Id, StringComparison.OrdinalIgnoreCase) == 0
|| String.Compare(parameterName, "identifier", StringComparison.OrdinalIgnoreCase) == 0)
{
return PredicateQuery(observation => observation.Id == value.Code);
}
....
}

	public override myRelationalQuery<myObservation> AddValueFilter(string parameterName, RawValue value)
	{

// This code is called instead :-( ....
throw new NotImplementedException();
}
}
`

An error is being swallowed that complains that:

System.Security.Cryptography.XmlSerializers, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL cannot be found.

I'm not sure if that is the cause of the problem. I'm assuming the webhost is trying to read the specification.zip file that is present in the output directory and process monitor shows it being read, but not many parameters are found when reading the xsd files present in the zip.

Any help or pointers would be greatly appreciated.

Thanks!

@mmsmits
Copy link
Member

mmsmits commented Mar 27, 2024

@charlejc , this is not an SDK question but a Firely Server specific issue.
We've informed our colleagues about this, they'll also inform you where you can post questions in the future

@alexzautke
Copy link
Member

Conversation is continued in FirelyTeam/Vonk.Facade.Relational#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants