Lots of work on log; half-ready Change Organizations; added sanitation of Json data

This commit is contained in:
Rick Falkvinge
2014-01-11 09:39:07 +00:00
parent 9d2552ed61
commit aaab58f4bd
24 changed files with 132 additions and 60 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ namespace Swarmops.Database
return ReadDocumentFromDataReader(reader);
}
throw new ArgumentException("Unknown Account Id");
throw new ArgumentException("Unknown Document Id");
}
}
}
+2 -1
View File
@@ -15,7 +15,7 @@ namespace Swarmops.Database
private const string swarmopsLogFieldSequence =
" SwarmopsLogEntryId,DateTime,PersonId,EntryTypeId,EntryXml " + // 0-4
"FROM SwarmopsLog";
"FROM SwarmopsLog ";
private static BasicSwarmopsLogEntry ReadSwarmopsLogEntryFromDataReader(IDataRecord reader)
{
@@ -104,6 +104,7 @@ namespace Swarmops.Database
AddParameterWithName(command, "personId", personId);
AddParameterWithName(command, "entryType", entryType);
AddParameterWithName(command, "entryXml", entryXml);
AddParameterWithName(command, "dateTime", DateTime.UtcNow);
return Convert.ToInt32(command.ExecuteScalar());
}