Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How DataSourceAttribute Works

I have defined a DataSource to specific table as in the next code:

[DataSource("System.Data.Odbc",
"Dsn=R10;Uid=sa;Pwd=Abcd1234@;Integrated Security=True;Connect Timeout=30;User Instance=True;",
"Products",
 DataAccessMethod.Sequential)]

When the datasource gets the data from table, does it upload to the cache all the rows of the table or the datasource works with bulks.

If it does work with bulks, is there a way to control on the bulk size?

like image 908
Tal Tchernihovski Avatar asked Aug 28 '26 05:08

Tal Tchernihovski


1 Answers

According to documentation, entire data set is loaded before any test is run:

The data source cannot be changed based on input during a test because all the data is loaded and cached before the first test runs.

like image 198
k.m Avatar answered Aug 29 '26 17:08

k.m



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!