I have a page that maintains a budget.
Below I present a briefing of entities
public partial class Orcamento
{
public int IdPedidoCompra { get; set; }
public int IdCliente { get; set; }
public System.DateTime DataPedido { get;...
Good morning.
I'm working with Entity Framework and I'm having trouble updating a relational table.
For example, I have a product with several categories, in the edition I unlink the category x of the product.
The update does not delete the unre...
I have this function with array and I am not able to pass to the controller values, I listing, it appears correctly, I use angular.
$scope.addItem = function (user) {
$scope.items.push({
de: $scope.total,...
In the example below, I need to pass a login / password pair because the REST service requires Basic Authentication. So how do I pass this information in the following section? (Additional information: authentication must be made encoded in t...
I am developing a portal in C # MVC3 and in a given operation I need to open another window in a separate window. To open the page of this new portal I need to send some credentials, since it is implemented with basic authentication.
I'd like...
I'm using the extensions methods @Ajax.BeginForm() to save the data via AJAX. To prevent more than one click on the submit button, which could cause a double insert in my database, I decided to include a small snippet of code inside the...
Good evening, I came across a problem updating the DB of an AspNet Core application. I had created the database, but I ended up deleting it now when trying to create it again using the following commands:
dotnet ef migrations Initial
dotnet e...
I'm saving the data for Ajax, but my reCaptcha is not working properly, the form is sent even without pressing inside Captcha.
My Controller
[HttpPost]
[CaptchaValidator(PrivateKey= "secretKey", ErrorMessage="Captcha
Invalido", Req...
RegisterNewPessoaCommand Class
public class RegisterNewPessoaCommand {
public RegisterNewPessoaCommand(PessoaNatureza pessoaNatureza,
PessoaFisica pessoaFisica,
PessoaJuridi...
I have the following code:
using (Context contexto = new Context())
{
List<Cliente> listCliente = contexto.Cliente.Where(x => x.Status == 0).ToList();
}
How do I delete this result from the database? Remembering that I have num...