F
Fabio R.
Probably a newbie questions...
If I have a singleton class which read and write to a database, what happens
if 2 or more clients call the same methods at the same time?
If one method is:
public DataSet GetData(string sql_query){
some database operations...
return _dataset;
}
and client 1 call:
GetData("select * from users");
and client 2 call:
GetData("select * from cars");
is there any possibilities that client 1 receives the cars dataset or
viceversa?
Thanks, in advance
Fabio
If I have a singleton class which read and write to a database, what happens
if 2 or more clients call the same methods at the same time?
If one method is:
public DataSet GetData(string sql_query){
some database operations...
return _dataset;
}
and client 1 call:
GetData("select * from users");
and client 2 call:
GetData("select * from cars");
is there any possibilities that client 1 receives the cars dataset or
viceversa?
Thanks, in advance
Fabio