Skip to content

Commit

Permalink
v3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MaceWindu committed Dec 17, 2022
1 parent e02a9e0 commit d27d792
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 65 deletions.
4 changes: 2 additions & 2 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<configuration>
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="linq2db" value="https://www.myget.org/F/linq2db/api/v3/index.json" />
<!--<add key="linq2db" value="https://www.myget.org/F/linq2db/api/v3/index.json" />
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
<add key="aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
<add key="aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />-->
</packageSources>
</configuration>
2 changes: 1 addition & 1 deletion samples/IdentitySample.Mvc/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void ConfigureServices(IServiceCollection services)
.AddConfiguration(
"Default",
Configuration["Data:DefaultConnection:ConnectionString"],
new SqlServerDataProvider("Default", SqlServerVersion.v2012, SqlServerProvider.SystemDataSqlClient));
SqlServerTools.GetDataProvider(SqlServerVersion.v2012, SqlServerProvider.SystemDataSqlClient));

DataConnection.DefaultConfiguration = "Default";

Expand Down
50 changes: 24 additions & 26 deletions src/LinqToDB.Identity/IdentityDataConnection.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Data;
using System.Data.Common;
using LinqToDB.Data;
using LinqToDB.DataProvider;

Expand All @@ -19,8 +17,8 @@ public class IdentityDataConnection : IdentityDataConnection<IdentityUser, Ident
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
: base(dataProvider, connection)
{
}
Expand All @@ -29,8 +27,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
: base(dataProvider, transaction)
{
}
Expand Down Expand Up @@ -87,8 +85,8 @@ public class IdentityDataConnection<TUser> : IdentityDataConnection<TUser, Ident
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
: base(dataProvider, connection)
{
}
Expand All @@ -97,8 +95,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
: base(dataProvider, transaction)
{
}
Expand Down Expand Up @@ -162,8 +160,8 @@ public class IdentityDataConnection<TUser, TRole, TKey> :
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
: base(dataProvider, connection)
{
}
Expand All @@ -172,8 +170,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
: base(dataProvider, transaction)
{
}
Expand Down Expand Up @@ -245,8 +243,8 @@ public class IdentityDataConnection<TUser, TRole, TKey, TUserClaim, TUserRole, T
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
: base(dataProvider, connection)
{
}
Expand All @@ -255,8 +253,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
/// Constructor
/// </summary>
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
: base(dataProvider, transaction)
{
}
Expand Down Expand Up @@ -304,37 +302,37 @@ public IdentityDataConnection()
/// <summary>
/// Gets the <see cref="ITable{TEntity}" /> of Users.
/// </summary>
public ITable<TUser> Users => GetTable<TUser>();
public ITable<TUser> Users => this.GetTable<TUser>();

/// <summary>
/// Gets the <see cref="ITable{TEntity}" /> of User claims.
/// </summary>
public ITable<TUserClaim> UserClaims => GetTable<TUserClaim>();
public ITable<TUserClaim> UserClaims => this.GetTable<TUserClaim>();

/// <summary>
/// Gets the <see cref="ITable{TEntity}" /> of User logins.
/// </summary>
public ITable<TUserLogin> UserLogins => GetTable<TUserLogin>();
public ITable<TUserLogin> UserLogins => this.GetTable<TUserLogin>();

/// <summary>
/// Gets the <see cref="ITable{TEntity}" /> of User roles.
/// </summary>
public ITable<TUserRole> UserRoles => GetTable<TUserRole>();
public ITable<TUserRole> UserRoles => this.GetTable<TUserRole>();

/// <summary>
/// Gets the <see cref="ITable{TEntity}" /> of User tokens.
/// </summary>
public ITable<TUserToken> UserTokens => GetTable<TUserToken>();
public ITable<TUserToken> UserTokens => this.GetTable<TUserToken>();

/// <summary>
/// Gets the <see cref="ITable{TEntity}" /> of roles.
/// </summary>
public ITable<TRole> Roles => GetTable<TRole>();
public ITable<TRole> Roles => this.GetTable<TRole>();

/// <summary>
/// Gets the <see cref="ITable{TEntity}" /> of role claims.
/// </summary>
public ITable<TRoleClaim> RoleClaims => GetTable<TRoleClaim>();
public ITable<TRoleClaim> RoleClaims => this.GetTable<TRoleClaim>();

#endregion
}
Expand Down
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/IdentityLinqToDbBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using LinqToDB;
using LinqToDB.Data;
Expand Down
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/IdentityRole.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using LinqToDB.Mapping;
Expand Down
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/IdentityRoleClaim.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Security.Claims;

Expand Down
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/IdentityUser.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using LinqToDB.Mapping;
Expand Down
2 changes: 0 additions & 2 deletions src/LinqToDB.Identity/IdentityUserClaim.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Security.Claims;

Expand Down
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/IdentityUserLogin.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;

namespace LinqToDB.Identity
Expand Down
2 changes: 0 additions & 2 deletions src/LinqToDB.Identity/IdentityUserRole.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;

namespace LinqToDB.Identity
Expand Down
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/IdentityUserToken.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;

namespace LinqToDB.Identity
Expand Down
8 changes: 4 additions & 4 deletions src/LinqToDB.Identity/LinqToDB.Identity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<Description>ASP.NET Core Identity provider that uses LinqToDB.</Description>
<VersionPrefix>3.3.0</VersionPrefix>
<Version>3.3.0</Version>
<PackageVersion>3.3.0</PackageVersion>
<VersionPrefix>3.4.0</VersionPrefix>
<Version>3.4.0</Version>
<PackageVersion>3.4.0</PackageVersion>

<Authors>Ilya Chudin</Authors>

Expand Down Expand Up @@ -41,7 +41,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="linq2db" Version="3.3.0" />
<PackageReference Include="linq2db" Version="4.4.0" />

<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.1.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.1" />
Expand Down
5 changes: 1 addition & 4 deletions src/LinqToDB.Identity/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System.Reflection;
using System.Resources;

[assembly: AssemblyMetadata("Serviceable", "True")]
[assembly: NeutralResourcesLanguage("en-us")]
[assembly: AssemblyCompany("linq2db.com")]
[assembly: AssemblyCopyright("© 2011-2021 linq2db.com")]
[assembly: AssemblyCopyright("© 2011-2022 linq2db.com")]
[assembly: AssemblyProduct("Linq to DB")]
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/RoleStore.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down
3 changes: 0 additions & 3 deletions src/LinqToDB.Identity/UserStore.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down

0 comments on commit d27d792

Please sign in to comment.