Discussion:
[nhusers] an error similar to this one https://nhibernate.jira.com/browse/NH-3186
Gof
2018-03-15 14:45:25 UTC
Permalink
1 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault(x => x.Id == 1);

error: Parameter 'inputInfo' has type
'Remotion.Linq.Clauses.StreamedData.StreamedSingleValueInfo' when type
'Remotion.Linq.Clauses.StreamedData.StreamedSequenceInfo' was expected.
similar - https://nhibernate.jira.com/browse/NH-3186

2 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault();

ideas how to fix??

NHibernate Version 5.0.3
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Ricardo Peres
2018-03-15 23:15:29 UTC
Permalink
Can you provide a failing unit test with the bare minimum to reproduce the
error?

RP
Post by Gof
1 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault(x => x.Id == 1);
error: Parameter 'inputInfo' has type
'Remotion.Linq.Clauses.StreamedData.StreamedSingleValueInfo' when type
'Remotion.Linq.Clauses.StreamedData.StreamedSequenceInfo' was expected.
similar - https://nhibernate.jira.com/browse/NH-3186
2 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault();
ideas how to fix??
NHibernate Version 5.0.3
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Gof
2018-03-18 13:17:46 UTC
Permalink
in 5.1.0 working.

new problem

.Where(x => x.InternalId != "")

=>

internal_id <> ''''' or internal_id is null


why is that?
Post by Gof
1 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault(x => x.Id == 1);
error: Parameter 'inputInfo' has type
'Remotion.Linq.Clauses.StreamedData.StreamedSingleValueInfo' when type
'Remotion.Linq.Clauses.StreamedData.StreamedSequenceInfo' was expected.
similar - https://nhibernate.jira.com/browse/NH-3186
2 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault();
ideas how to fix??
NHibernate Version 5.0.3
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Alexander Zaytsev
2018-03-18 21:23:17 UTC
Permalink
This is intended because of the difference of null semantic in SQL and .NET

In SQL null does not equal nor does not not-equal to anything (any
comparison expression involving null gives false). So the expression null
<> "" is false.

In .NET null behaves as a normal object.

Best Regards,
Alexander
Post by Gof
in 5.1.0 working.
new problem
.Where(x => x.InternalId != "")
=>
internal_id <> ''''' or internal_id is null
why is that?
Post by Gof
1 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault(x => x.Id == 1);
error: Parameter 'inputInfo' has type 'Remotion.Linq.Clauses.StreamedData.StreamedSingleValueInfo'
when type 'Remotion.Linq.Clauses.StreamedData.StreamedSequenceInfo' was
expected.
similar - https://nhibernate.jira.com/browse/NH-3186
2 .Query<XmlFid>()
.Cacheable()
.CacheMode(CacheMode.Normal)
.Fetch(x => x.User)
.SingleOrDefault();
ideas how to fix??
NHibernate Version 5.0.3
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Loading...