J
JimO
As a general rule, is it better to place database calls as part of the
object the operate on or just put all the calls in thier own namespace?
Ex
Dim userObject = New UserClass()
userObject.InsertUser()
Or
Dim DBCalls = New SystemDBCalls()
DBCalls.InsertUser(userObject)
I realize there are a few different ways you can code this but you get the
idea. Or perhaps this is just a matter of preference or function?
Thanks,
Jim
object the operate on or just put all the calls in thier own namespace?
Ex
Dim userObject = New UserClass()
userObject.InsertUser()
Or
Dim DBCalls = New SystemDBCalls()
DBCalls.InsertUser(userObject)
I realize there are a few different ways you can code this but you get the
idea. Or perhaps this is just a matter of preference or function?
Thanks,
Jim