Skip to content
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

JsonPath column support #3044

Closed
eknkc opened this issue Dec 27, 2023 · 1 comment · Fixed by #3334
Closed

JsonPath column support #3044

eknkc opened this issue Dec 27, 2023 · 1 comment · Fixed by #3334
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@eknkc
Copy link

eknkc commented Dec 27, 2023

Hi,

Is there a way to define a JsonPath column in ef core model? While doing this generates the correct migration and schema:

  [Column("filter_jsonpath", TypeName = "jsonpath")]
  [StringLength(4096)]
  public string? Filter_Jsonpath { get; set; }

It does not allow saving a jsonpath query in the database resulting the following exception:

PostgresException: 42804: column "filter_jsonpath" is of type jsonpath but expression is of type character varying

Can I somehow map a string to jsonpath in db?

roji added a commit to roji/efcore.pg that referenced this issue Oct 28, 2024
@roji roji self-assigned this Oct 28, 2024
@roji roji added the enhancement New feature or request label Oct 28, 2024
@roji roji added this to the 9.0.0 milestone Oct 28, 2024
@roji
Copy link
Member

roji commented Oct 28, 2024

Sorry for not answering earlier; I'm adding support for this for 9.0.

@roji roji closed this as completed in 342c560 Oct 28, 2024
WhatzGames pushed a commit to WhatzGames/efcore.pg that referenced this issue Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants