Does not recognize Add Collection Mappers from automapper.collection - automapper

I try to use automapper.collection but in the Mapper.Initialize method the AddCollectionMappers method is not recognized
I'm using .net 4.7, automapper 6.1.1, automapper.collection 3.1.1
Thank you.
enter image description here

Try adding using statement:
using AutoMapper.EquivalencyExpression;

Related

Can 2.1-preview.3 or 2.1 form recognizer versions be used with powerskills code?

Is it possible to use powerskills code with form recognizer 2.1-preview.3 or 2.1?
The 2.1-preview.1 is buggy and not that good, so can i use 2.1-preview.3 version in the powerskill? If yes the how/where can i change it?
Changed to azure-ai-formrecognizer==3.1.2 in the requirements.txt file in the powerskills code. This works for the 2.1-preview.3 version.

what is alternative to executeQueryWithResultSet() in ArangoDb 3.0.2?

I am using ArangoDb 3.0.2.
I want to execute query similar to this method
executeQueryWithResultSet()
which used to work well in Arangodb 2.3.
What is alternative for this method for Arango 3.0.2 and what are its parameters?
This Official Java tutorial is still using the old method, which when I am trying with Arango 3.0.2 giving me error.
Thanks..!
You can use executeAqlQuery() which returns you CursorResult<T> or you can use executeDocumentQuery() which returns you DocumentCursor<T>.
Use executeDocumentQuery() only if your query returns you a document or a list of documents that extends DocumentEntity, otherwise use executeAqlQuery().
The Java tutorial is not up to date, but you can find the updated and correct sources for the tutorial here.

create directive for join in uwp

I have this query in my UWP project (I use EF7 and Sqlite in my app):
var query = (from s in db.tblStudent
join h in db.tblTests on
s.NameTest equals h.NameTest
select( s.NameTest)).ToList();
When I compile my project with .net native I got this exception:
'System.Reflection.MissingMetadataException' in System.Private.CoreLib.dll
'System.Collections.Generic.IEnumerable>' is missing metadata.
I studied http://dotnet.github.io/native/troubleshooter/type.html and
http://dotnet.github.io/native/troubleshooter/method.html links but I can not create a correct directive for default.rd.xml.
Can anybody help me to write the correct directive?
Fortunately, these problems have been solved in the Updated version of Visual Studio 2015.

java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller

I am trying to generate Excel using Xssf API because its memory footprint is small.
It is working fine in my local machine which is having jdk1.7.
But when I try to run it on UNIX where java version is 1.6.0_75 it gives me the following error.
java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller
I have following jars in my classpath
poi-3.11-20141221.jar
poi-excelant-3.11-20141221.jar
poi-ooxml-3.11-20141221.jar
poi-ooxml-schemas-3.11-20141221.jar
xmlbeans-2.6.0.jar
xercesImpl.jar
I have verified that poi-3.11-20141221.jar has the ZipPackagePropertiesMarshaller class.
Seems that some jar is missing.
Am I missing something?
I have found a solution to my own problem.
I replaced poi-3.11-20141221.jar with poi-ooxml-3.9.jar. That worked.
Java version 1.6.0_75 does not exists, I suppose you make a typo. The last update of Java 6 is the update 45 (6u45).
The class ZipPackagePropertiesMarshaller is loaded at run-time for sure. The exception NoClassDefFoundError occurs during the initialization phase; if the exception had been ClassNotFoundException, it would have been different...
The class ZipPackagePropertiesMarshaller is unaltered between the versions 3.11 and 3.9, but the class PackagePropertiesMarshaller extended by ZipPackagePropertiesMarshaller is changed: the main change regards the use of StAX in the newer version.
The distribution of StAX coming with Java 6, but the version of Java 6 update 18 (http://www.oracle.com/technetwork/java/javase/6u18-142093.html) introduces the StAX 1.2 API version.
Consider to use Java 6u18 or newer. This should solve your problem.
In the official FAQ there are some indications about a similar problem: https://poi.apache.org/faq.html#faq-N1017E.
Moreover, the workaround you found is not the best one, see the last FAQ of POI.

EntityFramework 4 upgraded to 5, lambda is not available

I have upgraded my "entityframework 4" project to 5. I want to use lambda expression in Include (my motivation is to suplant string definitions) brackets.
At this momemnt I have:
context.WarrantyContract.Include("Car");
And want to achieve this one:
context.WarrantyContract.Include(w => w.Car);
But when I try to replace string, visual studio is not eable to recognize my will.
I'll appreciate any right direction.
The lambda version of the Include is declared in the System.Data.Entity.DbExtensions class as an extension method.
In order to use it you need to add an using with the right namespace in your file the:
using System.Data.Entity;
//...
context.WarrantyContract.Include(w => w.Car);

Resources