Pass critiera on a Dataportal_Create

Pass critiera on a Dataportal_Create

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


JonM posted on Monday, April 23, 2007

Is it just me or does the CSLA.net 2.x not support passing a criteria through the Dataportal_Create?

Jon

skagen00 replied on Monday, April 23, 2007

Don't specify the function as an override... it works.

Good luck!

protected void DataPortal_Create(Criteria criteria)

{

if (criteria == null)

{

throw new ArgumentNullException("criteria");

}

_address = criteria.Address;

ValidationRules.CheckRules();

}

JonM replied on Monday, April 23, 2007

Thanks!  I did have to change the class from protected to private and it worked great!

Copyright (c) Marimer LLC