????
Current Path : C:/inetpub/vhost/binhdinhf1.gdtsolutions.vn/api/logs/ |
Current File : C:/inetpub/vhost/binhdinhf1.gdtsolutions.vn/api/logs/stdout_20231117094139_5664.log |
info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0] Content root path: C:\inetpub\vhost\binhdinhf1.gdtsolutions.vn\api info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (81ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (75ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (5ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; info: Microsoft.EntityFrameworkCore.Migrations[20405] No migrations were applied. The database is already up to date. info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT CASE WHEN EXISTS ( SELECT 1 FROM [identity].[AspNetRoles] AS [a]) THEN CAST(1 AS bit) ELSE CAST(0 AS bit) END info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT CASE WHEN EXISTS ( SELECT 1 FROM [identity].[AspNetUsers] AS [a]) THEN CAST(1 AS bit) ELSE CAST(0 AS bit) END info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (36ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (4ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (15ms) [Parameters=[@__TypedProperty_3='?' (DbType = Int32), @__TypedProperty_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[Id], [t].[CreatedBy], [t].[CreatedOn], [t].[Description], [t].[Keywords], [t].[ModifiedBy], [t].[ModifiedOn], [t].[Name], [t0].[AlbumId], [t0].[MediaId], [t0].[CreatedBy], [t0].[CreatedOn], [t0].[ModifiedBy], [t0].[ModifiedOn], [t].[c] FROM ( SELECT TOP(@__TypedProperty_3) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], ( SELECT COUNT_BIG(*) FROM [MediaAlbums] AS [m] WHERE [a].[Id] = [m].[AlbumId]) AS [c] FROM [Albums] AS [a] ORDER BY [a].[Id] ) AS [t] LEFT JOIN ( SELECT [t1].[AlbumId], [t1].[MediaId], [t1].[CreatedBy], [t1].[CreatedOn], [t1].[ModifiedBy], [t1].[ModifiedOn] FROM ( SELECT [m0].[AlbumId], [m0].[MediaId], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[ModifiedBy], [m0].[ModifiedOn], ROW_NUMBER() OVER(PARTITION BY [m0].[AlbumId] ORDER BY [m0].[AlbumId], [m0].[MediaId]) AS [row] FROM [MediaAlbums] AS [m0] ) AS [t1] WHERE [t1].[row] <= @__TypedProperty_1 ) AS [t0] ON [t].[Id] = [t0].[AlbumId] ORDER BY [t].[Id], [t0].[AlbumId], [t0].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (5ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (4ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT COUNT_BIG(*) FROM [Albums] AS [a] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] fail: Microsoft.EntityFrameworkCore.Database.Command[20102] Failed executing DbCommand (15ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?' (DbType = Guid), @p2='?' (Size = 50), @p3='?' (DbType = DateTime2), @p4='?' (Size = 50), @p5='?' (DbType = DateTime2)], CommandType='Text', CommandTimeout='30'] SET IMPLICIT_TRANSACTIONS OFF; SET NOCOUNT ON; INSERT INTO [MediaAlbums] ([AlbumId], [MediaId], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5); fail: Microsoft.EntityFrameworkCore.Update[10000] An exception occurred in the database while saving changes for context type 'GDT.BinhDinhF1.Infrastructure.RacingContext'. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) fail: Microsoft.EntityFrameworkCore.Database.Command[20102] Failed executing DbCommand (7ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?' (DbType = Guid), @p2='?' (Size = 50), @p3='?' (DbType = DateTime2), @p4='?' (Size = 50), @p5='?' (DbType = DateTime2)], CommandType='Text', CommandTimeout='30'] SET IMPLICIT_TRANSACTIONS OFF; SET NOCOUNT ON; INSERT INTO [MediaAlbums] ([AlbumId], [MediaId], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5); fail: Microsoft.EntityFrameworkCore.Update[10000] An exception occurred in the database while saving changes for context type 'GDT.BinhDinhF1.Infrastructure.RacingContext'. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (9ms) [Parameters=[@__TypedProperty_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_1) [a].[Id], [a].[Name], ( SELECT COUNT_BIG(*) FROM [MediaAlbums] AS [m] WHERE [a].[Id] = [m].[AlbumId]) FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (9ms) [Parameters=[@__TypedProperty_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_1) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], ( SELECT COUNT_BIG(*) FROM [MediaAlbums] AS [m] WHERE [a].[Id] = [m].[AlbumId]) FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (15ms) [Parameters=[@__TypedProperty_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_1) [a].[Id], [a].[Name], [a].[Description], ( SELECT COUNT_BIG(*) FROM [MediaAlbums] AS [m] WHERE [a].[Id] = [m].[AlbumId]) FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_1) [a].[Id], [a].[Name], [a].[Description], ( SELECT COUNT_BIG(*) FROM [MediaAlbums] AS [m] WHERE [a].[Id] = [m].[AlbumId]) FROM [Albums] AS [a] ORDER BY [a].[Id] fail: Microsoft.EntityFrameworkCore.Database.Command[20102] Failed executing DbCommand (9ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?' (DbType = Guid), @p2='?' (Size = 50), @p3='?' (DbType = DateTime2), @p4='?' (Size = 50), @p5='?' (DbType = DateTime2)], CommandType='Text', CommandTimeout='30'] SET IMPLICIT_TRANSACTIONS OFF; SET NOCOUNT ON; INSERT INTO [MediaAlbums] ([AlbumId], [MediaId], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5); fail: Microsoft.EntityFrameworkCore.Update[10000] An exception occurred in the database while saving changes for context type 'GDT.BinhDinhF1.Infrastructure.RacingContext'. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (5ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?' (DbType = Guid), @p2='?' (Size = 50), @p3='?' (DbType = DateTime2), @p4='?' (Size = 50), @p5='?' (DbType = DateTime2)], CommandType='Text', CommandTimeout='30'] SET IMPLICIT_TRANSACTIONS OFF; SET NOCOUNT ON; INSERT INTO [MediaAlbums] ([AlbumId], [MediaId], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5); info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (6ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (4ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] fail: Microsoft.EntityFrameworkCore.Database.Command[20102] Failed executing DbCommand (7ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?' (DbType = Guid), @p2='?' (Size = 50), @p3='?' (DbType = DateTime2), @p4='?' (Size = 50), @p5='?' (DbType = DateTime2)], CommandType='Text', CommandTimeout='30'] SET IMPLICIT_TRANSACTIONS OFF; SET NOCOUNT ON; INSERT INTO [MediaAlbums] ([AlbumId], [MediaId], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5); fail: Microsoft.EntityFrameworkCore.Update[10000] An exception occurred in the database while saving changes for context type 'GDT.BinhDinhF1.Infrastructure.RacingContext'. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, bea2d3a7-7e11-4c8d-4e3f-08dbd07771fb). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_1) [a].[Id], [a].[Name], [a].[Description], ( SELECT COUNT_BIG(*) FROM [MediaAlbums] AS [m] WHERE [a].[Id] = [m].[AlbumId]) FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] fail: Microsoft.EntityFrameworkCore.Database.Command[20102] Failed executing DbCommand (7ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?' (DbType = Guid), @p2='?' (Size = 50), @p3='?' (DbType = DateTime2), @p4='?' (Size = 50), @p5='?' (DbType = DateTime2)], CommandType='Text', CommandTimeout='30'] SET IMPLICIT_TRANSACTIONS OFF; SET NOCOUNT ON; INSERT INTO [MediaAlbums] ([AlbumId], [MediaId], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5); fail: Microsoft.EntityFrameworkCore.Update[10000] An exception occurred in the database while saving changes for context type 'GDT.BinhDinhF1.Infrastructure.RacingContext'. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, ae5d27a2-d172-49bf-ae65-08dbd10af47e). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_MediaAlbums'. Cannot insert duplicate key in object 'dbo.MediaAlbums'. The duplicate key value is (611, ae5d27a2-d172-49bf-ae65-08dbd10af47e). The statement has been terminated. at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__209_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) ClientConnectionId:7f7cd3de-f47a-4fdb-bce2-b9baa746d213 Error Number:2627,State:1,Class:14 --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Update.Internal.SqlServerModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken) info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (5ms) [Parameters=[@p0='?' (DbType = Int32), @p1='?' (DbType = Guid), @p2='?' (Size = 50), @p3='?' (DbType = DateTime2), @p4='?' (Size = 50), @p5='?' (DbType = DateTime2)], CommandType='Text', CommandTimeout='30'] SET IMPLICIT_TRANSACTIONS OFF; SET NOCOUNT ON; INSERT INTO [MediaAlbums] ([AlbumId], [MediaId], [CreatedBy], [CreatedOn], [ModifiedBy], [ModifiedOn]) VALUES (@p0, @p1, @p2, @p3, @p4, @p5); info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32), @__TypedProperty_4='?' (DbType = Int32), @__TypedProperty_5='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT [t].[AlbumId], [t].[MediaId], [t].[CreatedBy], [t].[CreatedOn], [t].[ModifiedBy], [t].[ModifiedOn], [m0].[Id], [m0].[Author], [m0].[Caption], [m0].[ContentType], [m0].[CreatedBy], [m0].[CreatedOn], [m0].[Keywords], [m0].[Link], [m0].[ModifiedBy], [m0].[ModifiedOn], [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name], CAST(0 AS bit), CAST(0 AS bit) FROM ( SELECT [m].[AlbumId], [m].[MediaId], [m].[CreatedBy], [m].[CreatedOn], [m].[ModifiedBy], [m].[ModifiedOn] FROM [MediaAlbums] AS [m] WHERE [m].[AlbumId] = @__TypedProperty_0 ORDER BY [m].[AlbumId], [m].[MediaId] OFFSET @__TypedProperty_4 ROWS FETCH NEXT @__TypedProperty_5 ROWS ONLY ) AS [t] INNER JOIN [Media] AS [m0] ON [t].[MediaId] = [m0].[Id] INNER JOIN [Albums] AS [a] ON [t].[AlbumId] = [a].[Id] ORDER BY [t].[AlbumId], [t].[MediaId] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [m].[Id], [m].[Author], [m].[Caption], [m].[ContentType], [m].[CreatedBy], [m].[CreatedOn], [m].[Keywords], [m].[Link], [m].[ModifiedBy], [m].[ModifiedOn] FROM [Media] AS [m] ORDER BY [m].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (3ms) [Parameters=[@__TypedProperty_1='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_1) [a].[Id], [a].[Name], [a].[Description], ( SELECT COUNT_BIG(*) FROM [MediaAlbums] AS [m] WHERE [a].[Id] = [m].[AlbumId]) FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.EntityFrameworkCore.Database.Command[20101] Executed DbCommand (2ms) [Parameters=[@__TypedProperty_0='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] SELECT TOP(@__TypedProperty_0) [a].[Id], [a].[CreatedBy], [a].[CreatedOn], [a].[Description], [a].[Keywords], [a].[ModifiedBy], [a].[ModifiedOn], [a].[Name] FROM [Albums] AS [a] ORDER BY [a].[Id] info: Microsoft.Hosting.Lifetime[0] Application is shutting down...