converting to c# from vb - stuck with something

converting to c# from vb - stuck with something

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


griff posted on Thursday, December 09, 2010

Hi

got a brain block...what am I missing 

Get an error on this line <

Abraca.Business.School.GetBySchoolIDAsync("SLS01",  GetSchool_Completed);>

 

 

 private void button1_Click(object sender, RoutedEventArgs e)

        {

            Abraca.Business.School.GetBySchoolIDAsync("SLS01",  GetSchool_Completed);

        }

 

        private void GetSchool_Completed(object sender, Csla.DataPortalResult<SchoolDetails> e)

        {

            if (e != null)

            {

 

            }

        }

 

Thanks

JonnyBee replied on Thursday, December 09, 2010

I think you missed on the objecttype.

       Abraca.Business.School.GetBySchoolIDAsync("SLS01",  GetSchool_Completed);>

If you BO is type School then that should also be the generic type of DataPortalResult

        private void GetSchool_Completed(object sender, Csla.DataPortalResult<School> e)

 

 

griff replied on Thursday, December 09, 2010

Thanks, been a long day!

Copyright (c) Marimer LLC