You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>
/// Содержание мероприятий
///
/// List27List
/// </summary>
[SharepointList("Содержание мероприятий")]
public partial class EventContent : ISharepointItem
{
[SharepointField("ID")]
public int Id { get; set; } //ID:Counter ,
/// <summary>
///Title:Text ,
/// </summary>
[SharepointField("Title")]
public String Title { get; set; }
/// <summary>
///lookup Id(s) for MontBlocks:
///LookupMulti
///Блоки с контентом данного мероприятия
/// </summary>
[SharepointField("MontBlocks", MapData.LookupId)]
public List<int> MontBlocksId { get; set; }
/// <summary>
///MontBlocks:LookupMulti , Блоки с контентом данного мероприятия
/// </summary>
[SharepointField("MontBlocks", MapData.LookupValue)]
public List<String> MontBlocks { get; set; }
}//Содержание мероприятий
`
Mapping is ok:
[TestMethod]
public void TestMethod4()
{
List<EventContent> eventContents = _sharepointClient.GetAll<EventContent>();
}
But where query fails
Test:
[TestMethod]
public void TestMethod3()
{
var ecc= _sharepointClient.Query<EventContent>(ec => ec.MontBlocksId.Contains(1)).FirstOrDefault();
}
with:
{CamlexNET.NonSupportedOperandTypeException: Operand type 'System.Collections.Generic.List1[System.Int32]' is not supported at CamlexNET.Impl.Factories.OperandBuilder.CreateValueOperand(Type type, Object value, Boolean includeTimeValue, Boolean parseExactDateTime, Boolean isComparisionOperation, Boolean isIntegerForUserId) at CamlexNET.Impl.Factories.OperandBuilder.createValueOperand(Type type, Object value, Expression expr) at CamlexNET.Impl.Factories.OperandBuilder.createValueOperandFromConstantExpression(ConstantExpression expr, Type explicitOperandType, Expression sourceExpr) at CamlexNET.Impl.Factories.OperandBuilder.CreateValueOperandForNativeSyntax(Expression expr, Type explicitOperandType, Expression sourceExpr) at CamlexNET.Impl.Factories.OperandBuilder.CreateValueOperandForNativeSyntax(Expression expr, Type explicitOperandType) at CamlexNET.Impl.UnaryExpressionBaseAnalyzer.getValueOperand(LambdaExpression expr) at CamlexNET.Impl.Operations.Contains.ContainsAnalyzer.GetOperation(LambdaExpression expr) at CamlexNET.Impl.GenericTranslator.TranslateWhere(LambdaExpression expr) at CamlexNET.Impl.Query.Where(Expression1 expr)
at Shmapper.SharepointClient.Query[T](Expression`1 filter) in 49}
`
The text was updated successfully, but these errors were encountered:
Entity class:
`
`
Mapping is ok:
But where query fails
Test:
with:
`
The text was updated successfully, but these errors were encountered: