Couldn't find Async methods

Posts   
 
    
matthewma
User
Posts: 36
Joined: 24-May-2013
# Posted on: 15-Jan-2016 19:01:13   

Hello again,

This might be a stupid question, but I didn't figure it out myself yet.

I am using LLBLGen Pro 4.2 final. Visual Studio 2013. Windows 7. Generated code and my code are all targeted at .Net 4.5.1. But when I query using LinqMetaData.EntityName, I can't find async method such as ToListAsync(). What I have only the old ToList().

Any suggestion?

Also, is there any update such minor fixes after 4.2 final? How can I get new distributed binaries? The original link in purchase email is expired.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 16-Jan-2016 03:59:54   

matthewma wrote:

This might be a stupid question, but I didn't figure it out myself yet.

I am using LLBLGen Pro 4.2 final. Visual Studio 2013. Windows 7. Generated code and my code are all targeted at .Net 4.5.1. But when I query using LinqMetaData.EntityName, I can't find async method such as ToListAsync(). What I have only the old ToList().

This is quoted from the documentation:

Documentation wrote:

To use the Async API, you have to use the specific .NET 4.5 build of the SD.LLBLGen.Pro.ORMSupportClasses.dll, which is located in the <LLBLGen Pro Installation folder>\Frameworks\RuntimeLibraries\CompiledRuntimeLibraries\NET4.5 folder. It's a drop-in replacement of the normal .NET 3.5 build and it contains all code of the normal build. This allows you to start with normal synchronous code and when appropriate reference the .NET 4.5 build to be able to use asynchronous code.

NOTE: Make sure you reference the async SD.LLBLGen.Pro.ORMSupportClasses.dll in all projects which required you to reference the ORM Support Classes, including the generated code projects.

Please check the link for more information.

matthewma wrote:

Also, is there any update such minor fixes after 4.2 final? How can I get new distributed binaries? The original link in purchase email is expired.

In order to download updates and other extra downloads you have to login in the customer area. If you have a valid CustomerID, please open a new HelpDesk thread (which is private) asking for access, and provide your CustomerID and registered email address.

David Elizondo | LLBLGen Support Team
matthewma
User
Posts: 36
Joined: 24-May-2013
# Posted on: 18-Jan-2016 15:04:55   

Thank you daelmo,

I found the root cause that I can't find ToListAsync is missing "using namespace SD.LLBLGen.Pro.LinqSupportClasses;". Since it is extension method, the namespace needs to be explicitly referenced.