Housekeeping: Removed Database warnings

This commit is contained in:
Rick Falkvinge
2017-12-04 15:59:50 +01:00
parent ac39191cc7
commit 4a2e8c6fb8
12 changed files with 19 additions and 24 deletions
-2
View File
@@ -56,8 +56,6 @@ namespace Swarmops.Database
{
if (reader.Read())
{
DateTime testDate = reader.GetDateTime (3);
return reader.GetDouble(2);
}
@@ -30,7 +30,6 @@ namespace Swarmops.Database
int foreignId = reader.GetInt32 (3);
DateTime dateTime = reader.GetDateTime (4);
int personId = reader.GetInt32 (5);
double amount = reader.GetDouble (6); // not yet used
return new BasicFinancialValidation (financialValidationId, validationType, personId, dateTime,
dependencyType, foreignId);
+1 -1
View File
@@ -25,7 +25,7 @@ namespace Swarmops.Database
int inboundInvoiceId = reader.GetInt32 (0);
int organizationId = reader.GetInt32 (1);
DateTime createdDateTime = reader.GetDateTime (2);
int createdByPersonId = reader.GetInt32 (3);
// int createdByPersonId = reader.GetInt32 (3); // TODO: Do we care about this field?
DateTime dueDate = reader.GetDateTime (4);
Int64 amountCents = reader.GetInt64 (5);
int budgetId = reader.GetInt32 (6);
-2
View File
@@ -387,8 +387,6 @@ namespace Swarmops.Database
throw new ArgumentOutOfRangeException ("OrganizationId cannot be 0");
}
List<BasicParticipation> result = new List<BasicParticipation>();
using (DbConnection connection = GetMySqlDbConnection())
{
connection.Open();
+1 -1
View File
@@ -183,7 +183,7 @@ namespace Swarmops.Database
DbCommand command =
GetDbCommand (
"SELECT * FROM CredentialsTests", connection);
DbDataReader reader = command.ExecuteReader();
command.ExecuteReader();
return true;
}
-1
View File
@@ -117,7 +117,6 @@
<Compile Include="Database-Payroll.cs" />
<Compile Include="Database-PayrollAdjustments.cs" />
<Compile Include="Database-People.cs" />
<Compile Include="Database-PirateWebLog.cs" />
<Compile Include="Database-Positions.cs" />
<Compile Include="Database-PostalCodes.cs" />
<Compile Include="Database-PostalCodesCities.cs" />