Skip to content

Commit

Permalink
Update .NET SDK to 5.0.300 (#799)
Browse files Browse the repository at this point in the history
- Update .NET SDK to 5.0.300
- Address style warnings
  • Loading branch information
wsugarman authored May 27, 2021
1 parent 20a4d4b commit 3fa547b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Start from the sdk image
FROM mcr.microsoft.com/dotnet/sdk:5.0.203-alpine3.12@sha256:4fe96d2e0ad763284c5a222efb5e7098c84c1bce8fcb18c2f896c547963de1a5 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0.300-alpine3.12@sha256:cd03cb780dc61a1ef6e450a9e7025aa34c15a2c03e8a62a5dcfe7f490f7d2905 AS build

# Set the working directory to where the source is located
WORKDIR /src
Expand Down
2 changes: 1 addition & 1 deletion converter/dicom-cast/build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Start from the sdk image
FROM mcr.microsoft.com/dotnet/sdk:5.0.203-alpine3.12@sha256:4fe96d2e0ad763284c5a222efb5e7098c84c1bce8fcb18c2f896c547963de1a5 AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0.300-alpine3.12@sha256:cd03cb780dc61a1ef6e450a9e7025aa34c15a2c03e8a62a5dcfe7f490f7d2905 AS build

# Set the working directory to where the source is located
WORKDIR /dicom-cast/src
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "5.0.203"
"version": "5.0.300"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public SeriesMetadata(SqlDataReader sqlDataReader)
StudyKey = sqlDataReader.GetInt64(1);
SeriesInstanceUid = sqlDataReader.GetString(2);
Modality = sqlDataReader.GetString(3);
PerformedProcedureStepStartDate = sqlDataReader.IsDBNull(4) ? null : (DateTime?)sqlDataReader.GetDateTime(4);
PerformedProcedureStepStartDate = sqlDataReader.IsDBNull(4) ? null : sqlDataReader.GetDateTime(4);
}

public long SeriesKey { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public StudyMetadata(SqlDataReader sqlDataReader)
PatientID = sqlDataReader.GetString(2);
PatientName = sqlDataReader.GetString(3);
ReferringPhysicianName = sqlDataReader.GetString(4);
StudyDate = sqlDataReader.IsDBNull(5) ? null : (DateTime?)sqlDataReader.GetDateTime(5);
StudyDate = sqlDataReader.IsDBNull(5) ? null : sqlDataReader.GetDateTime(5);
StudyDescription = sqlDataReader.GetString(6);
AccessionNumber = sqlDataReader.GetString(7);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ public async Task<IReadOnlyList<DeletedInstance>> GetDeletedInstanceEntriesAsync
ORDER BY {VLatest.DeletedInstance.Watermark}";

sqlCommand.Parameters.AddWithValue("@studyInstanceUid", studyInstanceUid);
sqlCommand.Parameters.AddWithValue("@seriesInstanceUid", string.IsNullOrEmpty(seriesInstanceUid) ? DBNull.Value : (object)seriesInstanceUid);
sqlCommand.Parameters.AddWithValue("@sopInstanceUid", string.IsNullOrEmpty(sopInstanceUid) ? DBNull.Value : (object)sopInstanceUid);
sqlCommand.Parameters.AddWithValue("@seriesInstanceUid", string.IsNullOrEmpty(seriesInstanceUid) ? DBNull.Value : seriesInstanceUid);
sqlCommand.Parameters.AddWithValue("@sopInstanceUid", string.IsNullOrEmpty(sopInstanceUid) ? DBNull.Value : sopInstanceUid);

using (SqlDataReader sqlDataReader = await sqlCommand.ExecuteReaderAsync())
{
Expand Down

0 comments on commit 3fa547b

Please sign in to comment.