diff --git a/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj b/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj index 90ea471..c0add0e 100644 --- a/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj +++ b/AMWD.Common.AspNetCore/AMWD.Common.AspNetCore.csproj @@ -1,8 +1,8 @@ - netcoreapp3.1;net5.0 - 9.0 + netcoreapp3.1;net5.0;net6.0 + 10.0 AMWD.Common.AspNetCore AMWD.Common.AspNetCore @@ -11,7 +11,6 @@ true false true - false true true @@ -46,6 +45,11 @@ + + + + + diff --git a/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj b/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj index 6c306ec..ff7857e 100644 --- a/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj +++ b/AMWD.Common.EntityFrameworkCore/AMWD.Common.EntityFrameworkCore.csproj @@ -1,8 +1,8 @@  - netcoreapp3.1;net5.0 - 9.0 + netcoreapp3.1;net5.0;net6.0 + 10.0 AMWD.Common.EntityFrameworkCore AMWD.Common.EntityFrameworkCore @@ -11,7 +11,6 @@ true false true - false true true @@ -49,6 +48,13 @@ + + + + + + + all diff --git a/AMWD.Common.EntityFrameworkCore/Extensions/DatabaseFacadeExtensions.cs b/AMWD.Common.EntityFrameworkCore/Extensions/DatabaseFacadeExtensions.cs index 9c3fae4..82a5c29 100644 --- a/AMWD.Common.EntityFrameworkCore/Extensions/DatabaseFacadeExtensions.cs +++ b/AMWD.Common.EntityFrameworkCore/Extensions/DatabaseFacadeExtensions.cs @@ -183,7 +183,7 @@ END;" // max length in the database: 250 chars string trimmedFileName = fileName; if (trimmedFileName.Length > 250) - fileName = fileName.Substring(0, 250); + fileName = fileName[..250]; if (migratedFiles.Contains(trimmedFileName)) { diff --git a/AMWD.Common.EntityFrameworkCore/Extensions/ModelBuilderExtensions.cs b/AMWD.Common.EntityFrameworkCore/Extensions/ModelBuilderExtensions.cs index d8b80a1..b14fd92 100644 --- a/AMWD.Common.EntityFrameworkCore/Extensions/ModelBuilderExtensions.cs +++ b/AMWD.Common.EntityFrameworkCore/Extensions/ModelBuilderExtensions.cs @@ -113,7 +113,7 @@ namespace AMWD.Common.EntityFrameworkCore.Extensions switch (state) { case SnakeCaseState.Upper: - bool hasNext = (i + 1 < value.Length); + bool hasNext = i + 1 < value.Length; if (i > 0 && hasNext) { char nextChar = value[i + 1]; diff --git a/AMWD.Common/AMWD.Common.csproj b/AMWD.Common/AMWD.Common.csproj index 554f691..f52927a 100644 --- a/AMWD.Common/AMWD.Common.csproj +++ b/AMWD.Common/AMWD.Common.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 9.0 + 10.0 AMWD.Common AMWD.Common @@ -11,7 +11,6 @@ true false true - false true true diff --git a/AMWD.Common/Extensions/StringExtensions.cs b/AMWD.Common/Extensions/StringExtensions.cs index f5419ce..c86e52c 100644 --- a/AMWD.Common/Extensions/StringExtensions.cs +++ b/AMWD.Common/Extensions/StringExtensions.cs @@ -46,8 +46,8 @@ namespace System /// /// Encodes a string to the hexadecimal system (base 16). /// - /// - /// + /// The string to encode hexadecimal. + /// The text encoding to use (default: ) /// public static string HexEncode(this string str, Encoding encoding = null) { @@ -60,8 +60,8 @@ namespace System /// /// Decodes a string from the hexadecimal system (base 16). /// - /// - /// + /// The hexadecimal encoded string to decode. + /// The text encoding to use (default: ) /// public static string HexDecode(this string str, Encoding encoding = null) { @@ -74,8 +74,8 @@ namespace System /// /// Encodes a string to base64. /// - /// - /// + /// The string to encode with base64. + /// The text encoding to use (default: ) /// public static string Base64Encode(this string str, Encoding encoding = null) => Convert.ToBase64String((encoding ?? Encoding.Default).GetBytes(str)); @@ -83,8 +83,8 @@ namespace System /// /// Decodes a string from base64. /// - /// - /// + /// The base64 encoded string to decode. + /// The text encoding to use (default: ) /// public static string Base64Decode(this string str, Encoding encoding = null) => (encoding ?? Encoding.Default).GetString(Convert.FromBase64String(str));