List generalization

List generalization

Old forum URL: forums.lhotka.net/forums/t/2171.aspx


phucphlq posted on Thursday, January 18, 2007

I need a list generalization. I write this line, but it show an error

Csla.EditableRootListBase<Csla.Core.BusinessBase> List;

Error The type 'Csla.Core.BusinessBase' must be convertible to 'Csla.Core.ISavable' in order to use it as parameter 'T' in the generic type or method 'Csla.EditableRootListBase<T>'

Do you have any ideas

ajj3085 replied on Friday, January 19, 2007

That's because Csla.Core.BusinessBase does not implement ISavable.  Csla.BusinessBase<T> does.

You're better off trying to use interfaces for this I think.

mikeclimbs replied on Friday, January 19, 2007

Rocky wrote an article on this subject.  It can be found at http://www.lhotka.net/Article.aspx?area=4&id=b8515cd9-7f8e-43df-9efd-cd958dfdc21a

Good luck

Mike

 

Copyright (c) Marimer LLC