Skip to content

EF7 json Column - Set Max String Length #30793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BrianMikinski opened this issue Apr 28, 2023 · 1 comment
Closed

EF7 json Column - Set Max String Length #30793

BrianMikinski opened this issue Apr 28, 2023 · 1 comment

Comments

@BrianMikinski
Copy link

Hi EF Core Team!

Quick question related to EF7 json columns - is there a way to set a max string length via the fluent api? Similar to the default sql data type for string values, a json column migration sets the json data column to be an nvarcar(max). While I know I can update the migration itself to change the type, is there a more elegant way to do this that can change with the model in the fluent api?

@maumar
Copy link
Contributor

maumar commented Apr 28, 2023

not at the moment, tracked by #28591

@maumar maumar closed this as completed May 1, 2023
@roji roji closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants