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

Store procedure with geography column in EF Core #45

Open
georgeemr opened this issue Jul 9, 2020 · 0 comments
Open

Store procedure with geography column in EF Core #45

georgeemr opened this issue Jul 9, 2020 · 0 comments

Comments

@georgeemr
Copy link

When I call a store procedure with a geography column in EF Core i'm getting the error.

Model:
public Geometry Coordenates { get; set; }

g.db.LoadStoredProc("dbo.spGetCoordenates").AddParam("UsuarioId", c.Id).Exec(r => uDatoExtraModel = r.FirstOrDefault());

FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServer.Types, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. The system cannot find the file specified. This library is for Net Framework.

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

No branches or pull requests

1 participant