Skip to content

Commit c4354c4

Browse files
committed
Fix comments
1 parent 09b2bce commit c4354c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/VirtoCommerce.Platform.Data/GenericCrud/CrudService.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ public virtual async Task SaveChangesAsync(IList<TModel> models)
190190

191191
if (originalEntity != null)
192192
{
193-
// This extension is allow to get around breaking changes is introduced in EF Core 3.0 that leads to throw
194-
// Database operation expected to affect 1 row(s) but actually affected 0 row(s) exception when trying to add the new children entities with manually set keys
193+
// This extension allows to get around breaking changes introduced in EF Core 3.0 that lead to throw
194+
// Database operation expected to affect 1 row(s) but actually affected 0 row(s) exception when trying to add new child entities with manually set keys
195195
// https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.0/breaking-changes#detectchanges-honors-store-generated-key-values
196196
repository.TrackModifiedAsAddedForNewChildEntities(originalEntity);
197197

@@ -213,7 +213,7 @@ public virtual async Task SaveChangesAsync(IList<TModel> models)
213213
}
214214
}
215215

216-
//Raise domain events
216+
// Raise domain events
217217
await _eventPublisher.Publish(EventFactory<TChangeEvent>(changedEntries));
218218
await CommitAsync(repository);
219219
}
@@ -264,7 +264,7 @@ public virtual async Task DeleteAsync(IList<string> ids, bool softDelete = false
264264

265265
using (var repository = _repositoryFactory())
266266
{
267-
//Raise domain events before deletion
267+
// Raise domain events before deletion
268268
var changedEntries = models.Select(x => new GenericChangedEntry<TModel>(x, EntryState.Deleted)).ToList();
269269
await _eventPublisher.Publish(EventFactory<TChangeEvent>(changedEntries));
270270

@@ -286,7 +286,7 @@ public virtual async Task DeleteAsync(IList<string> ids, bool softDelete = false
286286
}
287287
ClearCache(models);
288288

289-
//Raise domain events after deletion
289+
// Raise domain events after deletion
290290
await _eventPublisher.Publish(EventFactory<TChangedEvent>(changedEntries));
291291
}
292292
}

0 commit comments

Comments
 (0)