Hello,,
I want to use Isoftdelete filter but i am getting an error "SoftDelete filter not found" EntityFeramwork layer in EfUnitOf Work.cs
i added in AbpDbContext; modelBuilder.Filter(FSMDataFilters.SoftDelete, (ISoftDelete d) => d.IsDeleted, true);
and also added AbpKernelModule Configuration.UnitOfWork.RegisterFilter(FSMDataFilters.SoftDelete, false);
and entityModel like this public class Personnel : Entity, ISoftDelete
what i am doing wrong :(
Thank you for your help
4 Answer(s)
-
0
Hi,
ISoftDelete is a built-in filter of ASP.NET Boilerplate. So, you don't have to create a soft delete filter yourself. If you overrided onmodelcreating, don't forget to call base.onmodelcreating as the first line.
-
0
arkadaş gibi bende denedim bende çalıştıramadım.
Dediğin gibi OnModelCreating methodunun için de aşağıdaki kod ekli
modelBuilder.Filter(FSMDataFilters.SoftDelete, (ISoftDelete d) => d.IsDeleted, true);
soft delete not found hatasını alıyorum
-
0
Soft delete filtresi zaten default olarak çalışıyor. Bu satırı eklemenize gerek olmamalı. Böyle denediniz mi?
-
0