Skip to content

refactor : return readonlyList in queryRepository #20

refactor : return readonlyList in queryRepository

refactor : return readonlyList in queryRepository #20

Triggered via pull request October 22, 2023 18:13
Status Success
Total duration 42s
Artifacts

dotnet.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs#L20
Nullability of reference types in type of parameter 'query' of 'Task<long> QueryGenericRepository<T>.GetCountAsync(Expression<Func<T, bool>> query = null)' doesn't match implicitly implemented member 'Task<long> IQueryGenericRepository<T>.GetCountAsync(Expression<Func<T, bool>>? query = null)' (possibly because of nullability attributes).
build: GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs#L20
Cannot convert null literal to non-nullable reference type.
build: GenericRepository/Data/CommandContext.cs#L11
Nullability of reference types in type of parameter 'sender' of 'void CommandContext.TrackChanges(object sender, EntityEntryEventArgs e)' doesn't match the target delegate 'EventHandler<EntityStateChangedEventArgs>' (possibly because of nullability attributes).
build: GenericRepository/Data/CommandContext.cs#L12
Nullability of reference types in type of parameter 'sender' of 'void CommandContext.TrackChanges(object sender, EntityEntryEventArgs e)' doesn't match the target delegate 'EventHandler<EntityTrackedEventArgs>' (possibly because of nullability attributes).
build: GenericRepository/Entities/ChangeLogEntity.cs#L6
Non-nullable property 'OldValue' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: GenericRepository/Entities/ChangeLogEntity.cs#L7
Non-nullable property 'NewValue' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: GenericRepository/Entities/ChangeLogEntity.cs#L8
Non-nullable property 'RelatedEntityId' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: GenericRepository/Entities/ChangeLogEntity.cs#L9
Non-nullable property 'RelatedEntityType' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs#L31
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs#L50
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.