Raised This Month: $51 Target: $400
 12% 

why Transaction class has no size(length or count) property?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 11-28-2016 , 04:48   why Transaction class has no size(length or count) property?
Reply With Quote #1

unlike ArrayList...
__________________
Starbish is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 11-28-2016 , 06:25   Re: why Transaction class has no size(length or count) property?
Reply With Quote #2

Why do you need it?
blaacky is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-28-2016 , 18:23   Re: why Transaction class has no size(length or count) property?
Reply With Quote #3

What blaacky said.

Transaction's intended usage is to add queries to it, then send it to the database using Database's .Execute
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-28-2016 at 18:23.
Powerlord is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 11-28-2016 , 19:51   Re: why Transaction class has no size(length or count) property?
Reply With Quote #4

If query has been added dynamically, we couldn't know whether there's even at least one query in Transaction.

Of course it could be solved by using one 'int' variable.... but hmm..
__________________
Starbish is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode