Skip to content

No way to create an empty NpgsqlTsVector (NpgsqlTsVector.Parse("") gives a warning) #6134

@pikoscielniak

Description

@pikoscielniak

I want to assign an empty value to a property of type NpgsqlTsVector. I couldn't find a better option than assigning the result of the function NpgsqlTsVector.Parse(""), but then I receive the following warning:

CS0618: Method 'NpgsqlTypes.NpgsqlTsVector.Parse(string)' is obsolete: 'Client-side parsing of NpgsqlTsVector is unreliable and cannot fully duplicate the PostgreSQL logic. Use PG functions instead (e.g. to_tsvector)'

How can I get an empty value for the NpgsqlTsVector type?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions