Skip to content

Commit d27d792

Browse files
committed
v3.4.0
1 parent e02a9e0 commit d27d792

15 files changed

+32
-65
lines changed

NuGet.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<configuration>
33
<packageSources>
44
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
5-
<add key="linq2db" value="https://www.myget.org/F/linq2db/api/v3/index.json" />
5+
<!--<add key="linq2db" value="https://www.myget.org/F/linq2db/api/v3/index.json" />
66
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
77
<add key="aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
8-
<add key="aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
8+
<add key="aspnetcore-tools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />-->
99
</packageSources>
1010
</configuration>

samples/IdentitySample.Mvc/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void ConfigureServices(IServiceCollection services)
4343
.AddConfiguration(
4444
"Default",
4545
Configuration["Data:DefaultConnection:ConnectionString"],
46-
new SqlServerDataProvider("Default", SqlServerVersion.v2012, SqlServerProvider.SystemDataSqlClient));
46+
SqlServerTools.GetDataProvider(SqlServerVersion.v2012, SqlServerProvider.SystemDataSqlClient));
4747

4848
DataConnection.DefaultConfiguration = "Default";
4949

src/LinqToDB.Identity/IdentityDataConnection.cs

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3-
41
using System;
52
using System.Data;
3+
using System.Data.Common;
64
using LinqToDB.Data;
75
using LinqToDB.DataProvider;
86

@@ -19,8 +17,8 @@ public class IdentityDataConnection : IdentityDataConnection<IdentityUser, Ident
1917
/// Constructor
2018
/// </summary>
2119
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
22-
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
23-
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
20+
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
21+
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
2422
: base(dataProvider, connection)
2523
{
2624
}
@@ -29,8 +27,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
2927
/// Constructor
3028
/// </summary>
3129
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
32-
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
33-
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
30+
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
31+
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
3432
: base(dataProvider, transaction)
3533
{
3634
}
@@ -87,8 +85,8 @@ public class IdentityDataConnection<TUser> : IdentityDataConnection<TUser, Ident
8785
/// Constructor
8886
/// </summary>
8987
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
90-
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
91-
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
88+
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
89+
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
9290
: base(dataProvider, connection)
9391
{
9492
}
@@ -97,8 +95,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
9795
/// Constructor
9896
/// </summary>
9997
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
100-
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
101-
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
98+
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
99+
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
102100
: base(dataProvider, transaction)
103101
{
104102
}
@@ -162,8 +160,8 @@ public class IdentityDataConnection<TUser, TRole, TKey> :
162160
/// Constructor
163161
/// </summary>
164162
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
165-
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
166-
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
163+
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
164+
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
167165
: base(dataProvider, connection)
168166
{
169167
}
@@ -172,8 +170,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
172170
/// Constructor
173171
/// </summary>
174172
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
175-
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
176-
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
173+
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
174+
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
177175
: base(dataProvider, transaction)
178176
{
179177
}
@@ -245,8 +243,8 @@ public class IdentityDataConnection<TUser, TRole, TKey, TUserClaim, TUserRole, T
245243
/// Constructor
246244
/// </summary>
247245
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
248-
/// <param name="connection">Connection object <see cref="IDbConnection" /></param>
249-
public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connection)
246+
/// <param name="connection">Connection object <see cref="DbConnection" /></param>
247+
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
250248
: base(dataProvider, connection)
251249
{
252250
}
@@ -255,8 +253,8 @@ public IdentityDataConnection(IDataProvider dataProvider, IDbConnection connecti
255253
/// Constructor
256254
/// </summary>
257255
/// <param name="dataProvider">Data provider object, see <see cref="IDataProvider" /></param>
258-
/// <param name="transaction">Transdaction object <see cref="IDbTransaction" /></param>
259-
public IdentityDataConnection(IDataProvider dataProvider, IDbTransaction transaction)
256+
/// <param name="transaction">Transdaction object <see cref="DbTransaction" /></param>
257+
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
260258
: base(dataProvider, transaction)
261259
{
262260
}
@@ -304,37 +302,37 @@ public IdentityDataConnection()
304302
/// <summary>
305303
/// Gets the <see cref="ITable{TEntity}" /> of Users.
306304
/// </summary>
307-
public ITable<TUser> Users => GetTable<TUser>();
305+
public ITable<TUser> Users => this.GetTable<TUser>();
308306

309307
/// <summary>
310308
/// Gets the <see cref="ITable{TEntity}" /> of User claims.
311309
/// </summary>
312-
public ITable<TUserClaim> UserClaims => GetTable<TUserClaim>();
310+
public ITable<TUserClaim> UserClaims => this.GetTable<TUserClaim>();
313311

314312
/// <summary>
315313
/// Gets the <see cref="ITable{TEntity}" /> of User logins.
316314
/// </summary>
317-
public ITable<TUserLogin> UserLogins => GetTable<TUserLogin>();
315+
public ITable<TUserLogin> UserLogins => this.GetTable<TUserLogin>();
318316

319317
/// <summary>
320318
/// Gets the <see cref="ITable{TEntity}" /> of User roles.
321319
/// </summary>
322-
public ITable<TUserRole> UserRoles => GetTable<TUserRole>();
320+
public ITable<TUserRole> UserRoles => this.GetTable<TUserRole>();
323321

324322
/// <summary>
325323
/// Gets the <see cref="ITable{TEntity}" /> of User tokens.
326324
/// </summary>
327-
public ITable<TUserToken> UserTokens => GetTable<TUserToken>();
325+
public ITable<TUserToken> UserTokens => this.GetTable<TUserToken>();
328326

329327
/// <summary>
330328
/// Gets the <see cref="ITable{TEntity}" /> of roles.
331329
/// </summary>
332-
public ITable<TRole> Roles => GetTable<TRole>();
330+
public ITable<TRole> Roles => this.GetTable<TRole>();
333331

334332
/// <summary>
335333
/// Gets the <see cref="ITable{TEntity}" /> of role claims.
336334
/// </summary>
337-
public ITable<TRoleClaim> RoleClaims => GetTable<TRoleClaim>();
335+
public ITable<TRoleClaim> RoleClaims => this.GetTable<TRoleClaim>();
338336

339337
#endregion
340338
}

src/LinqToDB.Identity/IdentityLinqToDbBuilderExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3-
41
using System;
52
using LinqToDB;
63
using LinqToDB.Data;

src/LinqToDB.Identity/IdentityRole.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3-
41
using System;
52
using System.Collections.Generic;
63
using LinqToDB.Mapping;

src/LinqToDB.Identity/IdentityRoleClaim.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3-
41
using System;
52
using System.Security.Claims;
63

src/LinqToDB.Identity/IdentityUser.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3-
41
using System;
52
using System.Collections.Generic;
63
using LinqToDB.Mapping;

src/LinqToDB.Identity/IdentityUserClaim.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
31
using System;
42
using System.Security.Claims;
53

src/LinqToDB.Identity/IdentityUserLogin.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3-
41
using System;
52

63
namespace LinqToDB.Identity

src/LinqToDB.Identity/IdentityUserRole.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
2-
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
31
using System;
42

53
namespace LinqToDB.Identity

0 commit comments

Comments
 (0)