Business Object execute question...


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem Smile
Robin J Giltner
Robin J Giltner
StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)
Group: Forum Members
Posts: 105, Visits: 650
Whew, thats what I was hoping :-)

Thanks Trent.

Robin Giltner

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Would using that method still work fine if the Middle Tier server were in play ?

Yes.  If you were using the Enterprise Server then your DAL would be an EnterpriseDataSourceItem instead of an SQLDataSourceItem which would properly interpret and relay all of the logic.

Robin J Giltner
Robin J Giltner
StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)
Group: Forum Members
Posts: 105, Visits: 650
I figured as much, and thats how I had been using the Data layer.  Would using that method still work fine if the Middle Tier server were in play ?

Thanks,

Robin

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
And btw, I've been getting a lot of errors when trying to use the forum, mainly when trying to list a forum from the forum main page.

Blush sorry about this....we are talking with InstantASP trying to get this resolved.  Apparently there are issues with the indexes be fragmented but not allowing rebuilds to correct the issue.  We will add a post once this is corrected letting you know.

Im guessing there is a good reason you didn't include these methods as public, but Im wondering what the reprocusions of my adding a method to execute a sqlcommand from the busniness object would be.

Yes.  You are trying to access these methods on a BO outside of the BO itself.  In this case just use the data access layer versus creating some method to illogically work around the protected definition.

MicroFour.StrataFrame.Data.DataBasics.DataSources(0).ExecuteScalar(...)

Robin J Giltner
Robin J Giltner
StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)StrataFrame User (137 reputation)
Group: Forum Members
Posts: 105, Visits: 650
I noticed that the methods on the Businessobjects for executescalar and executenonquery where marked as protected, and thus aren't available to my instantiated business objects in my applicaiton.

So I went in and made a public function to execute a sqlcommand parameter.  Im guessing there is a good reason you didn't include these methods as public, but Im wondering what the reprocusions of my adding a method to execute a sqlcommand from the busniness object would be.

And btw, I've been getting a lot of errors when trying to use the forum, mainly when trying to list a forum from the forum main page.

Thanks,

Robin Giltner

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search