2.0.2 Breaking Change - how to fix new warnings?

2.0.2 Breaking Change - how to fix new warnings?

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


Michael Hildner posted on Sunday, June 25, 2006

Hello,

I was affected by the breaking change. The change log for 2.0.2 explains this, and says if you declare DataPortal_Create to accept a parameter of type object, there's no problem.

So I changed by _Create methods to accept an object instead of Criteria. Now I get compiler warnings:

...DataPortal_Create(object)' hides inherited member 'Csla.Core.BusinessBase.DataPortal_Create(object)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.

I'm guessing I should declare as "new". Is that right?

Thanks,

Mike

rasupit replied on Sunday, June 25, 2006

Mike,

You should override instead of use new keyword.

Ricky

Copyright (c) Marimer LLC