Update threading model for company profile

This commit is contained in:
2025-04-05 12:48:45 -04:00
parent 5b971c8a74
commit f21543bcba
8 changed files with 106 additions and 482 deletions

View File

@@ -68,6 +68,7 @@ namespace MarketData.DataAccess
if (null != sqlConnection) sqlConnection.Close();
}
}
public static CompanyProfiles GetCompanyProfiles()
{
CompanyProfiles companyProfiles=new CompanyProfiles();
@@ -113,6 +114,7 @@ namespace MarketData.DataAccess
if (null != sqlConnection) sqlConnection.Close();
}
}
public static CompanyProfile GetCompanyProfile(String symbol)
{
MySqlConnection sqlConnection = null;
@@ -186,6 +188,7 @@ namespace MarketData.DataAccess
if(null!=sqlDataReader){sqlDataReader.Close();sqlDataReader.Dispose();}
}
}
private static bool InsertCompanyProfileDescription(CompanyProfile companyProfile,MySqlConnection sqlConnection,MySqlTransaction sqlTransaction)
{
MySqlCommand sqlCommand=null;
@@ -215,6 +218,7 @@ namespace MarketData.DataAccess
if(null!=sqlCommand)sqlCommand.Dispose();
}
}
private static bool UpdateCompanyProfileDescription(CompanyProfile companyProfile,MySqlConnection sqlConnection,MySqlTransaction sqlTransaction)
{
MySqlCommand sqlCommand=null;