Hello again. Sorry if I'm becoming a bit of a forum-hog here. I have a few posts regarding various issues I'm encountering regarding a change of CSLA version. Would it be more appropriate to keep them all in a single thread?
Anyway, further to my shift from .100201 to 100723, the methods for SetDataProperties and SetEFODataProperties no longer appear to be in the BusinessBase class.
Using a Data Portal ObjectFactory, I am calling a fetch:
public object Fetch(UserListCriteria criteria)
{
User o = null;
using (VEntities ctx = new VEntities()){
user efo = ctx.users.Where("it.id = " + criteria.Id).First<user>();
Populate(efo, ref o);
}
}
...
public void Populate(EntityObject o, ref User u)
{
//U inherits from BusinessBase
u.SetDataProperties(o);
}
and a similar method for updating, except using a PopulateEFO method that used u.SetEfoDataProperties(o).
These used to work, but now they do not. Do these methods exist somewhere else, or been made redundant?
Again, sorry if this has been mentioned elsewhere already. I checked the forums and changelog but found nothing.
Thanks
I have no idea what you are talking about here. Those methods have never existed in CSLA. They must be part of some custom base class in your application?
Ack!
The solution I am working with I originally got from somebody else. They must have tinkered with the CSLA source :(
Oh well, I'm using legit code straight from the official page now, hopefully there haven't been too many customisations!
Thanks again
Copyright (c) Marimer LLC