Skip to content

Commit

Permalink
migrate to net6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
7schmiede committed Nov 20, 2023
1 parent fed31c0 commit 3972248
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Task<List<UserList>> ListAsync(CancellationToken cancellationToken = defa

# Required .NET Core Packages for Web-API

- System.Data.SqlClient
- Microsoft.Data.SqlClient
- Microsoft.Extensions.Configuration

# Installation
Expand Down
2 changes: 1 addition & 1 deletion src/DataContext/DbContext.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/DataContext/Queries/SchemaQueries.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using SpocR.DataContext.Models;
Expand Down
2 changes: 1 addition & 1 deletion src/DataContext/Queries/StoredProcedureQueries.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using SpocR.DataContext.Models;
Expand Down
2 changes: 1 addition & 1 deletion src/DataContext/Queries/TableTypeQueries.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using SpocR.DataContext.Models;
Expand Down
2 changes: 1 addition & 1 deletion src/DataContext/SqlDataReaderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Reflection;
using SpocR.DataContext.Attributes;
Expand Down
4 changes: 2 additions & 2 deletions src/Models/ConfigurationModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class GlobalConfigurationModel : IVersioned
{
[JsonConverter(typeof(StringVersionConverter)), WriteProtectedBySystem]
public Version Version { get; set; }
public string TargetFramework { get; set; } = "net5.0"; // Allowed values: null, net5.0
public string TargetFramework { get; set; } = "net6.0"; // Allowed values: null, net6.0
public string UserId { get; set; }
public GlobalAutoUpdateConfigurationModel AutoUpdate { get; set; } = new GlobalAutoUpdateConfigurationModel { Enabled = true, LongPauseInMinutes = 1440, ShortPauseInMinutes = 15 };
public List<GlobalProjectConfigurationModel> Projects { get; set; } = new List<GlobalProjectConfigurationModel>();
Expand All @@ -37,7 +37,7 @@ public class ConfigurationModel : IVersioned
{
[JsonConverter(typeof(StringVersionConverter))]
public Version Version { get; set; }
public string TargetFramework { get; set; } = "net5.0"; // Allowed values: null, net5.0
public string TargetFramework { get; set; } = "net6.0"; // Allowed values: null, net6.0
public ProjectModel Project { get; set; }
public List<SchemaModel> Schema { get; set; }
}
Expand Down
2 changes: 1 addition & 1 deletion src/Output-v5-0/DataContext/AppDbContext.base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/Output-v5-0/DataContext/AppDbContextExtensions.base.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Reflection;

Expand Down
2 changes: 1 addition & 1 deletion src/Output-v5-0/DataContext/SqlParameterExtensions.base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Reflection;
using Source.DataContext.Outputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using Source.DataContext.Models;
Expand Down
2 changes: 1 addition & 1 deletion src/Output/DataContext/AppDbContext.base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/Output/DataContext/AppDbContextExtensions.base.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading;
Expand Down
2 changes: 1 addition & 1 deletion src/Output/DataContext/SqlDataReaderExtensions.base.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Reflection;

Expand Down
2 changes: 1 addition & 1 deletion src/Output/DataContext/SqlParameterExtensions.base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Linq;
using System.Reflection;
using Source.DataContext.Outputs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using Microsoft.Data.SqlClient;
using System.Threading;
using System.Threading.Tasks;
using Source.DataContext.Models;
Expand Down
4 changes: 2 additions & 2 deletions src/Services/SpocrService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public GlobalConfigurationModel GetGlobalDefaultConfiguration()
return new GlobalConfigurationModel
{
Version = Version,
TargetFramework = "net5.0",
TargetFramework = "net6.0",
AutoUpdate = new GlobalAutoUpdateConfigurationModel
{
Enabled = true,
Expand All @@ -30,7 +30,7 @@ public GlobalConfigurationModel GetGlobalDefaultConfiguration()
};
}

public ConfigurationModel GetDefaultConfiguration(string targetFramework = "net5.0", string appNamespace = "", string connectionString = "", ERoleKind roleKind = default, string libNamespace = null /*, EIdentityKind identityKind = default */)
public ConfigurationModel GetDefaultConfiguration(string targetFramework = "net6.0", string appNamespace = "", string connectionString = "", ERoleKind roleKind = default, string libNamespace = null /*, EIdentityKind identityKind = default */)
{
var role = new RoleModel
{
Expand Down
8 changes: 4 additions & 4 deletions src/SpocR.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Build">
<Version>3.1.14</Version>
<TargetFramework>net5.0</TargetFramework>
<Version>3.2.1</Version>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup Label="Package References">
Expand All @@ -20,7 +20,7 @@
<ToolCommandName>spocr</ToolCommandName>
<PackAsTool>True</PackAsTool>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -48,7 +48,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.2" />
</ItemGroup>

</Project>

0 comments on commit 3972248

Please sign in to comment.