Skip to content

Commit ea1fe67

Browse files
committed
Updated to version 3.13.0.
1 parent cbda133 commit ea1fe67

File tree

56 files changed

+1695
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1695
-87
lines changed

MyGeotabAPIAdapter.Configuration/MyGeotabAPIAdapter.Configuration.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.9" />
8+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.10" />
99
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" />
10-
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.4" />
10+
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.5" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

MyGeotabAPIAdapter.DataOptimizer/MyGeotabAPIAdapter.DataOptimizer.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<Authors>Geotab Inc.</Authors>
77
<Company>Geotab Inc.</Company>
88
<Product>MyGeotab API Adapter - DataOptimizer</Product>
9-
<AssemblyVersion>3.12.0.0</AssemblyVersion>
10-
<FileVersion>3.12.0.0</FileVersion>
9+
<AssemblyVersion>3.13.0.0</AssemblyVersion>
10+
<FileVersion>3.13.0.0</FileVersion>
1111
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
1212
<Description>A worker service designed to migrate data from the MyGeotab API Adapter database into another set of tables that are optimized for use by applications and data analysis tools. Additional columns are added to some of the tables and these are populated via interpolation or other query-based procedues.</Description>
1313
</PropertyGroup>
@@ -17,10 +17,10 @@
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.9" />
20+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.10" />
2121
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" />
2222
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
23-
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.4" />
23+
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.5" />
2424
</ItemGroup>
2525

2626
<ItemGroup>

MyGeotabAPIAdapter.Database.EntityPersisters/MyGeotabAPIAdapter.Database.EntityPersisters.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.4" />
8+
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.5" />
99
</ItemGroup>
1010

1111
<ItemGroup>

MyGeotabAPIAdapter.Database/DatabaseValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class DatabaseValidator : IDatabaseValidator
1717
// The required version of the middleware database for the current version of the middleware application. Any time the middleware database is updated as part of an application update:
1818
// 1. This value should be updated to reflect the application version at the time.
1919
// 2. Database changes should be included in a single script file and the filename should be formatted as "prefix_version_suffix.sql" (e.g. "MSSQL_3.0.0.0_InitialSchemaCreation.sql") where the version portion of the filename is equal to the value of this constant.
20-
const string RequiredDatabaseVersion = "3.12.0.0";
20+
const string RequiredDatabaseVersion = "3.13.0.0";
2121

2222
readonly IExceptionHelper exceptionHelper;
2323
readonly Logger logger = LogManager.GetCurrentClassLogger();
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using MyGeotabAPIAdapter.Database.Models;
2+
using System;
3+
4+
namespace MyGeotabAPIAdapter.Database.EntityMappers
5+
{
6+
/// <summary>
7+
/// A class with methods involving mapping between <see cref="DbDVIRDefectUpdate"/> and <see cref="DbFailedDVIRDefectUpdate"/> entities.
8+
/// </summary>
9+
public class DbUpdDVIRDefectUpdate2DbFailDVIRDefectUpdateFailure2EntityMapper : IDbUpdDVIRDefectUpdate2DbFailDVIRDefectUpdateFailure2EntityMapper
10+
{
11+
/// <inheritdoc/>
12+
public DbFailDVIRDefectUpdateFailure2 CreateEntity(DbUpdDVIRDefectUpdate2 dbUpdDVIRDefectUpdate2, string failureMessage)
13+
{
14+
DbFailDVIRDefectUpdateFailure2 dbFailDVIRDefectUpdateFailure2 = new()
15+
{
16+
DatabaseWriteOperationType = Common.DatabaseWriteOperationType.Insert,
17+
DVIRDefectId = dbUpdDVIRDefectUpdate2.DVIRDefectId,
18+
DVIRDefectUpdateId = dbUpdDVIRDefectUpdate2.id,
19+
DVIRLogId = dbUpdDVIRDefectUpdate2.DVIRLogId,
20+
FailureMessage = failureMessage,
21+
RecordCreationTimeUtc = DateTime.UtcNow,
22+
RemarkDateTimeUtc = dbUpdDVIRDefectUpdate2.RemarkDateTimeUtc,
23+
Remark = dbUpdDVIRDefectUpdate2.Remark,
24+
RemarkUserId = dbUpdDVIRDefectUpdate2.RemarkUserId,
25+
RepairDateTimeUtc = dbUpdDVIRDefectUpdate2.RepairDateTimeUtc,
26+
RepairStatusId = dbUpdDVIRDefectUpdate2.RepairStatusId,
27+
RepairUserId = dbUpdDVIRDefectUpdate2.RepairUserId
28+
};
29+
return dbFailDVIRDefectUpdateFailure2;
30+
}
31+
}
32+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using MyGeotabAPIAdapter.Database.Models;
2+
3+
namespace MyGeotabAPIAdapter.Database.EntityMappers
4+
{
5+
/// <summary>
6+
/// Interface for a class with methods involving mapping between <see cref="DbUpdDVIRDefectUpdate2"/> and <see cref="DbFailDVIRDefectUpdateFailure2"/> entities.
7+
/// </summary>
8+
public interface IDbUpdDVIRDefectUpdate2DbFailDVIRDefectUpdateFailure2EntityMapper
9+
{
10+
DbFailDVIRDefectUpdateFailure2 CreateEntity(DbUpdDVIRDefectUpdate2 dbUpdDVIRDefectUpdate2, string failureMessage);
11+
}
12+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using Dapper.Contrib.Extensions;
2+
using System;
3+
4+
namespace MyGeotabAPIAdapter.Database.Models
5+
{
6+
[Table("fail_DVIRDefectUpdateFailures2")]
7+
public class DbFailDVIRDefectUpdateFailure2 : IDbEntity
8+
{
9+
/// <inheritdoc/>
10+
[Write(false)]
11+
public string DatabaseTableName => "fail_DVIRDefectUpdateFailures2";
12+
/// <inheritdoc/>
13+
[Write(false)]
14+
public Common.DatabaseWriteOperationType DatabaseWriteOperationType { get; set; }
15+
#pragma warning disable IDE1006 // Naming Styles
16+
[Key]
17+
public long id { get; set; }
18+
#pragma warning restore IDE1006 // Naming Styles
19+
public long DVIRDefectUpdateId { get; set; }
20+
public Guid DVIRLogId { get; set; }
21+
public Guid DVIRDefectId { get; set; }
22+
public DateTime? RepairDateTimeUtc { get; set; }
23+
public short? RepairStatusId { get; set; }
24+
public long? RepairUserId { get; set; }
25+
public string Remark { get; set; }
26+
public DateTime? RemarkDateTimeUtc { get; set; }
27+
public long? RemarkUserId { get; set; }
28+
public string FailureMessage { get; set; }
29+
[ChangeTracker]
30+
public DateTime RecordCreationTimeUtc { get; set; }
31+
}
32+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using Dapper.Contrib.Extensions;
2+
using System;
3+
4+
namespace MyGeotabAPIAdapter.Database.Models
5+
{
6+
[Table("upd_DVIRDefectUpdates2")]
7+
public class DbUpdDVIRDefectUpdate2 : IDbEntity
8+
{
9+
/// <inheritdoc/>
10+
[Write(false)]
11+
public string DatabaseTableName => "upd_DVIRDefectUpdates2";
12+
/// <inheritdoc/>
13+
[Write(false)]
14+
public Common.DatabaseWriteOperationType DatabaseWriteOperationType { get; set; }
15+
#pragma warning disable IDE1006 // Naming Styles
16+
[Key]
17+
public long id { get; set; }
18+
#pragma warning restore IDE1006 // Naming Styles
19+
public Guid DVIRLogId { get; set; }
20+
public Guid DVIRDefectId { get; set; }
21+
public DateTime? RepairDateTimeUtc { get; set; }
22+
public short? RepairStatusId { get; set; }
23+
public long? RepairUserId { get; set; }
24+
public string Remark { get; set; }
25+
public DateTime? RemarkDateTimeUtc { get; set; }
26+
public long? RemarkUserId { get; set; }
27+
[ChangeTracker]
28+
public DateTime RecordCreationTimeUtc { get; set; }
29+
}
30+
}

MyGeotabAPIAdapter.Database/MyGeotabAPIAdapter.Database.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<ItemGroup>
1010
<PackageReference Include="Dapper" Version="2.1.66" />
1111
<PackageReference Include="FastMember" Version="1.5.0" />
12-
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.1" />
12+
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.2" />
1313
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="17.14.15" />
14-
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.4" />
15-
<PackageReference Include="Npgsql" Version="9.0.3" />
16-
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.9.1" />
17-
<PackageReference Include="Polly" Version="8.6.3" />
14+
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.5" />
15+
<PackageReference Include="Npgsql" Version="9.0.4" />
16+
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.26.0" />
17+
<PackageReference Include="Polly" Version="8.6.4" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

MyGeotabAPIAdapter.Geospatial/MyGeotabAPIAdapter.Geospatial.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.4" />
8+
<PackageReference Include="NLog.Extensions.Logging" Version="6.0.5" />
99
</ItemGroup>
1010

1111
<ItemGroup>

0 commit comments

Comments
 (0)