I'm working on some internal company web services and I have a
question about resource management within the Enterprise Data Access
Block.
I have about 20 methods which look similar to the one below:
[WebMethod]
public DataSet GetUserDataByGroup(int groupId)
{
string procName = "sp_GetUserDataByGroup";
return DatabaseFactory.CreateDatabase().ExecuteDataSet(pr ocName,
groupId);
}
My question is what happens to the resources created in
DatabaseFactory? Are they disposed of properly? Will I run out of
connections/resources? If this is a bad way to write these?
Thanks,
Kelly Greer
ke*********@nospam.com
change nospam to yahoo