Skip to content

Add option to ignore data annotation attributes #4492

@rockfordlhotka

Description

@rockfordlhotka

There is some overhead to scanning business types during app startup in order to find and register the data annotation attributes as CSLA rules.

Normally this is incidental, but in a serverless scenario (for example) where app startup happens every time any code is used, this overhead can become problematic.

We can add an option to the AddCsla method to tell CSLA to not scan types for data annotation attributes. Normal rule registration would still occur, but without this scan, data annotation attributes would be ignored by CSLA.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

  • Status

    No status
  • Status

    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions