DoStandardUpdateSingleEntity do not cover all types (and it says that in learning scripts).
I was surprised to see it doesn't update boolean fields so I created:
public class EntityAM:EntityAdapterManager
{
public void DoStandardUpdateByPk(PrimaryKey pk,
IDictionary newvalues)
{
Entity ent = this.PersistenceManager.GetEntity(pk);
UpdateProperties(newvalues, ent);
}
public void UpdateProperties(IDictionary newvalues, Entity ent)
{
// ...
}
}
UpdateProperties are used by both UpdateEntity() and InsertEntity().
It works. I'm not sure if I'm doing it right ( DoStandardUpdateSingleEntity() was protected so I did mine this way ). Could you tell me if there were a better way.
PS: I did first with DevForceDataSource and made it to work with Ajax. Converting to ASPDataSource, lost Ajax behavior I had successfully before.
It was a GridView and DetailsView and what specifically happens:
It updates DetailsView if SelectedIndexChanged but when PageIndexChanged it updates 'with previous record data'. Before with DevforceDataSource it was working just as I want it to be.
Working on it (actually doing from scratch now) and would appreciate if anyone has an idea what I may be missing.
Thanks in advance.
I would like to see a forum section devoted to ASP.
Edited by CetinBasoz - 24-Sep-2007 at 10:36am