❔ Post Request no working
please I tried to make a post request but I receive some error. How I can fix it ? I'm using .net core 6 version. Thanks in advance
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
}
}
7 Replies
read the error
You'll need to post the code for the function that is throwing the error, if you actually want help
but yeah, its "Microsoft.Data.SqlClient" that is throwing the error, that tells me a lot
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/also, the problem seems to lie in the setup of your context or the context itself
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.