LLBLGenProDataSource for SelfServicing Configuration

Posts   
 
    
Makhaly_cs avatar
Makhaly_cs
User
Posts: 27
Joined: 12-Jan-2009
# Posted on: 27-Dec-2012 17:24:00   

Dear ALL;

I am using LLBLGen Pro Version 3.5 and Visual Studio 2012. I use the LLBLGenProDataSource for selfservicing. When i add a new data source, i could not configure its Entity Collection type. I have attached the image of the problem.

Please advise...

Attachments
Filename File size Added on Approval
LLBLGenProDataSource for SelfServicing Configuration.png 20,654 27-Dec-2012 17:24.13 Approved
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-Dec-2012 00:16:07   

Hi Muhammad,

  • Please recompile your DAL (the generated project by LLBLGen)
  • Make sure you are referencing it in your GUI project.
  • Even try to restart VSNet, because sometimes this is a VS glitch.

You also could set up it in the declarative ASPX code, as described in the docs....

David Elizondo | LLBLGen Support Team
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 28-Dec-2012 04:52:19   

Most of the time, it just need to close the aspx page and reopen it again in V.S.

Makhaly_cs avatar
Makhaly_cs
User
Posts: 27
Joined: 12-Jan-2009
# Posted on: 08-Jan-2013 20:02:04   

Dear ALL;

I have found that when viewing the assembly (generated by LLBLGen Pro) in Visual Studio Object Explorer does not contain a CollectionClasses namespace.

Please advise...

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 09-Jan-2013 05:48:14   

Makhaly_cs wrote:

I have found that when viewing the assembly (generated by LLBLGen Pro) in Visual Studio Object Explorer does not contain a CollectionClasses namespace.

If your generated code is for SelfServicing, the namespace should be there for sure. If you open any <NameOfYourEntity>Collection.cs/vb at your generated project, you can see the namespace there. Please double check that you used SelfServicing.

BTW, Did you solve the original problem posted here? It occurs to me that you may be missing some required LLBLGen assembly. Please check Compiling the code docs section. Remember that for LLBLGenProDataSource to work you must include the SD.LLBLGen.Pro.ORMSupportClasses.Web.dll reference.

David Elizondo | LLBLGen Support Team
Makhaly_cs avatar
Makhaly_cs
User
Posts: 27
Joined: 12-Jan-2009
# Posted on: 09-Jan-2013 07:08:50   

I have found the namespace for Collection Calsses. But the problem is not solved yet. I search for that problem and some posts told to close the VS and remove any temporary ASP.NET files. I have done this but the LLBLGen Pro DataSource is unable to load the Entity Collections, TypedViews, and TypeLists.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 09-Jan-2013 20:13:28   

the LLBLGen Pro DataSource is unable to load the Entity Collections, TypedViews, and TypeLists.

This is in Design time, right? Does this happen in all pages or in a specific one? What if you set these properties in the ASPX manually, would the page load correctly in the design view, and hence display the correct selected object?

Makhaly_cs avatar
Makhaly_cs
User
Posts: 27
Joined: 12-Jan-2009
# Posted on: 09-Jan-2013 21:57:27   

Yes. It is in design time. I have set the property manually but i could not generate the ListView from the data source. This happens in all pages.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Jan-2013 06:45:48   

Generally this caused by the fact that the ORMSupportclasses dll in your webproject isn't the same as the one in the toolbox. This is a vs.net issue, it can't unload a dll and re-load it.

Try this: - close all webforms - close vs.net - start vs.net - load your solution. - rebuild solution. - open a webform.

David Elizondo | LLBLGen Support Team
Makhaly_cs avatar
Makhaly_cs
User
Posts: 27
Joined: 12-Jan-2009
# Posted on: 10-Jan-2013 16:29:32   

I have done these steps. It works fine for only WebForms that does not use a master Page. For any pages that use a master page it does not work.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 10-Jan-2013 20:48:02   

Does this happen in all pages or in a specific one?

Makhaly_cs avatar
Makhaly_cs
User
Posts: 27
Joined: 12-Jan-2009
# Posted on: 10-Jan-2013 20:49:00   

In all pages.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 11-Jan-2013 13:15:07   

Could you please attach a simple repro solution with one ASPX page? Remove any binaries from the zip package. Thanks.