I am using a DataFactory (ObjectFactory) for my data access layer. I now have a need for a custom method that accesses the database to do some database tasks. How would I got about this? I'd like to keep all of my data access code in the same project but not sure how I would call the method from my business object.
Any help would be appreciated. Tks.
Without specific knowledge about your needs, this is exactly what a CommandObject (CommandBase) is supposed to do.
That is, to do data access that is not part of a CRUD operation. For "lookups" you may also consider to use a ReadOnlyList/ReadOnly object.
I simply want to call a scalar stored procedure.
That makes CommandObject the correct type.
Thanks for pointing me in the right direction. Have things working now.
Copyright (c) Marimer LLC