Ramil Aliyev 007
Ramil Aliyev 007

Reputation: 5460

What is the IShouldNormalize's alternative in Abp.io?

I have a project, that created in Abp.io framework. I before used ASP.NET Boilerplate framework and ASP.NET Boilerplate has IShouldNormalize interface for normalize request's input. But I don't find IShouldNormalize's alternative in Abp.io

What is the IShouldNormalize's alternative in Abp.io ?

Upvotes: 2

Views: 597

Answers (1)

Engincan Veske
Engincan Veske

Reputation: 1585

No alternative. You can use IValidatableObject for validation and simple normalization. You can add your own method and call in the application service.

But we suggest you to make it in your application service method explicitly

https://github.com/abpframework/abp/issues/1908

You can use the IValidatableObject for validation and normalization for your needs.

IValidatableObject has just a method named Validate you can define your normalization rules in here, that you normally do in the Normalize method of theIShouldNormalize interface.

Upvotes: 1

Related Questions