Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> How to cast EntityCollection<T> (generic) -> EntityCollection (non-generic)
 

Pages: 1
LLBLGen Pro Runtime Framework
How to cast EntityCollection<T> (generic) -> EntityCollection (non-generic)
Page:1/1 

  Print all messages in this thread  
Poster Message
sherman
User



Location:
Malaga - Spain
Joined on:
31-Jul-2007 18:58:13
Posted:
9 posts
# Posted on: 26-Mar-2009 17:28:42.  
I need to cast an EntityCollection<MovEntity> that returns my BL to an EntityCollecion (winforms databinding):

BL method:
Code:
public EntityCollection<MovEntity> FetchCollection()

If I do in the GUI:
Code:
// collMovs is an EntityCollection
collMovs = MovManager.FetchCollection();

I receive: Cannot implicitly convert type 'Microserver.Integrador.DAL.HelperClasses.EntityCollection<Microserver.Integrador.DAL.EntityClasses.MovEntity>' to 'Microserver.Integrador.DAL.HelperClasses.EntityCollection'

I believe that the solution comes here: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=10908 ... but I don't fully understand Embarrassed

Thank you so much for any help!
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37967 posts
# Posted on: 26-Mar-2009 20:44:18.  
Please use the interface: IEntityCollection2 instead Regular Smiley It's for non-generic programming against generic entity collections Regular Smiley

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
sherman
User



Location:
Malaga - Spain
Joined on:
31-Jul-2007 18:58:13
Posted:
9 posts
# Posted on: 27-Mar-2009 08:35:04.  
Otis wrote:
Please use the interface: IEntityCollection2 instead Regular Smiley It's for non-generic programming against generic entity collections Regular Smiley


Thank you very much, great support!
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.