Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Updating and Delete Business Objects with Web Forms
Versions des environnements
Hi there,
I am trying to update/Delete Business object in Web forms where my Web form doesn't inherit from mmBusinessWebPage
I have the following piece of code works fine when updating
Dim oSchoolCategory as New CategoryType
oSchoolCategory.GetSchoolCategory(Me.BvinField.Value)
oSchoolCategory.Entity.Facility_Type = Me.txtCategoryType.Text.Trim
oSchoolCategory.Entity.Facility_Desc = Me.txtCategoryName.Text.Trim
oSchoolCategory.SaveEntity()
What it means an extra call to the database and then update, is there a way
just to update by calling an update function and passing primary key value, its the same situation for delete, may be I am missing something.
Thanks
Yassin
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement