|
-
COM+ Database Component Design
If I have an COM+ component that is going to provide reading and writing
access to a database. Is there any problem with the statements below.
With objMyWriteAccess
.SetProp1 = "value1"
.SetProp2 = "value2"
.UpdateItem "some_id"
End With
With objMyReadAccess
.LoadItem "some_id"
strValue1 = .GetProp1
strValu2 = .GetProp2
End With
So I guess my real question is:
1. When updating the database should I first have the user populate the
member variables then perform a stored proc to insert the new item?
2. When reading an item from the database should I first have the user load
the item then access its properties?
3. Are the above solutions the best in a distributed application?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks