Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmBusinessWebPage.Save vs ABusinessObject.SaveDataSet
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01257680
Message ID:
01258404
Vues:
13
Anatolly,

>I'm using ABusinessObject for updating records in SQL Server table. Under normal circumstances, is there a difference between using mmBusinessWebPage.Save and using ABusinessObject.SaveDataSet?
>
>    Protected oSystemSettings As SystemSettings
>
>...
>
>    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
>        Me.oSystemSettings = CType(Me.RegisterBizObj(New SystemSettings), SystemSettings)
>        If Not IsPostBack Then
>            oSystemSettings.GetAllData()
>            Session("dsSystemSettings") = oSystemSettings.DataSet
>        End If
>    End Sub
>
>    Private Sub SaveChanges()
>        Dim dsSaved As DataSet
>        dsSaved = CType(Session("dsSystemSettings"), DataSet)
>        Dim result As Boolean
>        result = oSystemSettings.SaveDataSet(dsSaved)
>    End Sub
>
The key difference is the extra work the web page Save() does for you. For example, after telling the business object to save, the web form checks if there were any broken rules and automatically displays error indicators in the web page for you.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform