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
I am using Automapper to map internal object to a DTO, however it is throwing
System.MissingMethodException: 'Constructor on type 'Redis.OM.Searching.RedisCollection1[[System.Linq.IQueryable1[[CustomerDTO, Redis_Graphql, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]' not found.'
on
public IQueryable CreateQuery(Expressionexpression){TypeelementType= expression.Type;try{return(IQueryable)Activator.CreateInstance(typeof(RedisCollection<>).MakeGenericType(elementType),this,
expression);}catch(TargetInvocationExceptione){if(e.InnerException ==null){throw;}throw e.InnerException;}}
Adding, this would solve the constructor issue but it's going into the exception of "The root attribute of a Redis Collection must be decorated with a DocumentAttribute"... perhaps adding a more generic constructor would help 🤔 ?
I am using Automapper to map internal object to a DTO, however it is throwing
System.MissingMethodException: 'Constructor on type 'Redis.OM.Searching.RedisCollection
1[[System.Linq.IQueryable
1[[CustomerDTO, Redis_Graphql, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Linq.Expressions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]' not found.'on
runable code:
The text was updated successfully, but these errors were encountered: