Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmBusinessWebPage.Save vs ABusinessObject.SaveDataSet
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01257680
Message ID:
01258404
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform