Skip to content

Change namespace for entry-point extension methods - #19

Merged
ankane merged 1 commit into
pgvector:masterfrom
roji:Namespaces
Oct 12, 2023
Merged

ankane merged 1 commit into
pgvector:masterfrom
roji:Namespaces

Conversation

@roji

@roji roji commented Oct 8, 2023

Copy link
Copy Markdown
Contributor

@ankane this change the namespaces of the UseVector() methods - both Npgsql and EF - to Npgsql and Microsoft.EntityFramework respectively. Since these are the main namespaces of the base packages, this means users no longer have to import Pgvector.Npgsql and Pgvector.EntityFrameworkCore in their code in order to use pgvector. This is how plugins generally do it at both levels.

Note that this targets npgsql8-v2 to avoid breaking the current release (v8 will contain much more serious breaking changes anyway and there will be no compatibility mixing major versions).

@roji
roji changed the base branch from npgsql8-v2 to master October 12, 2023 15:14
@roji

roji commented Oct 12, 2023

Copy link
Copy Markdown
Contributor Author

Rebased on top of master.

@ankane ankane mentioned this pull request Oct 12, 2023
@ankane
ankane merged commit 7849408 into pgvector:master Oct 12, 2023
@ankane

ankane commented Oct 12, 2023

Copy link
Copy Markdown
Member

Great, thanks!

@roji
roji deleted the Namespaces branch October 13, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants