Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

EF Core: Implement IModelValidator for provider-specific validation #135

Copy link
Copy link

Description

@DaveRMaltby
Issue body actions

Summary

The EF Core providers do not register a custom IModelValidator. This means provider-specific constraints (e.g., unsupported features like sequences, computed columns, or specific data types) are not validated at model build time.

What's Needed

A custom FileModelValidator that validates:

  • No unsupported column types are used
  • No sequences are configured (not supported by file providers)
  • No computed columns reference unsupported functions
  • Table/column names don't contain characters invalid for filenames
  • Schema names aren't used (file providers are schema-less)

Impact

Without validation, users discover unsupported features at runtime (query failure) rather than at model build time (clear error message). Build-time validation provides a much better developer experience.

Standard Reference

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    deferredDeferred — not addressing nowDeferred — not addressing now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.