|HomeAbout SSDMBusiness BenefitsSSDM = Methodology + Technology + Assistance|| Developer's Corner|
- Requirements Capture
- UML Static Data Model
- Application Design
- Sibilo Software Development Environment (Sibilo.SDE)
- Sibilo.DBL Programming
- Core Objects
6.3.4 Default Object of a Relationship
For one-to-one and many-to-many relationships, you can set an object in the relation as default. For example, a User might have many e-mail’s, but the user, by default, wants to send to one of his e-mail addresses.
Public Sub SetDefault(ByVal obj As SibiloCore)
SetDefault can be called with the parameter as the object that is to be default.
Public Sub SetDefault(ByVal ID As Integer)
SetDefault can be called with the parameter as the ID of the object that is to be default.
Public Function GetDefault() As SibiloCore
Returns the default object if there is one, or return Nothing.