Skip to content

Commit

Permalink
Corrected issue #20
Browse files Browse the repository at this point in the history
  • Loading branch information
gauffininteractive committed Feb 12, 2017
1 parent ffea9cb commit 7e597d6
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 248 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ public class ErrorReportEntityMapper : CrudEntityMapper<ErrorReportEntity>
{
public ErrorReportEntityMapper() : base("ErrorReports")
{
Property(x => x.Id)
.PrimaryKey(true);

Property(x => x.Exception)
.ToPropertyValue(EntitySerializer.Deserialize<ErrorReportException>)
.ToColumnValue(EntitySerializer.Serialize);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public virtual async Task<int> GetAverageReportCountAsync(int applicationId)
{
cmd.CommandText = @"SELECT
[Day] = DATENAME(WEEKDAY, createdatutc),
Totals = COUNT(*)
Totals = cast (COUNT(*) as int)
FROM errorreports
WHERE applicationid=@appId
GROUP BY
Expand All @@ -38,7 +38,7 @@ GROUP BY
{
while (await reader.ReadAsync())
{
numbers.Add((int) reader[0]);
numbers.Add((int) reader[1]);
}
}
numbers.Sort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
<Compile Include="Core\Incidents\Queries\GetReportListResultItemMapper.cs" />
<Compile Include="Core\Notifications\NotificationRepository.cs" />
<Compile Include="Core\Notifications\UserNotificationSettingsMap.cs" />
<Compile Include="Core\ReportSpikes\ReportSpikesRepository.cs" />
<Compile Include="Core\Reports\ErrorReportDtoMapper.cs" />
<Compile Include="Core\Reports\ErrorReportRepository.cs" />
<Compile Include="Core\Users\ApplicationTeamMemberMapper.cs" />
Expand Down
Loading

0 comments on commit 7e597d6

Please sign in to comment.