Hi,
Thanks for your response. As you said, ForcedCurrentValueWrite is not recommended. Can you please suggest better architecture than following? I do not want to create all properties, functionality of the datalayer again. so I have designed BusinessLayer inherits from LLBLEntity classes (entity, collection, factory classes). e.g:
namespace business.EntityClasses
{
public class CountryEntity : data.EntityClasses.CountryEntity
{
// All classes
}
}
I have inherited Factory classes to create instance of BusinessLayer classes instead of DataLayer. Now, Business layer has "Select" method to load an entity based on PK.
public virtual bool Select()
{
// this == NULL ??? I can not make NULL to itself to load another entity????
return this.FetchEntity();// This calls an adapter to load an entity.
}
Due to this design, I can not make NULL to BL (own) object inside Select method.
Also, I can create new BL instance everytime from UI classes, but I do NOT want to register/unregister events every time PK change???
Any design/architecture suggestion would be highly appreciated.
Regards.