In a C # MVC project, is it okay to access data within the model ? For example:
public class Cliente
{
public int Id { get; set; }
public string Nome { get; set; }
//outros atributos...
public void Inserir(){
Client...
I am trying to perform a password encryption using Python 3.7 and Django 2.1.
Looking at the Python documentation, Django and some answers here in StackOverflow, I came up with the code as follows, however, the password field is written blank...
To work with several databases in the Laravel framework, once you have configured all the connections in the configuration files, simply define in the model which connection to the database that model will use, and then regardless of the operati...
I have two templates: event registration package and subscription package, where the template event registration package has a list of subscription packages (see the code below, I removed some fields).
//Model
public class PacoteInscricaoEvent...
I'm studying OOP and a little bit about the MVC structure, and I'm not sure where to create and instantiate the database to be used in the entire application, I thought how Model relates to data processing would be the best place to create the s...
In cakephp 2, you save them in a transactional way with $data_source->begin(); , $data_source->commit(); , or $data_source->rollback(); .
So when I needed to insert into more than one table, and the data would be depen...
Good evening guys, I have a filter that I do manually with @query ()
that in it I do a total calculating join of a sale ie
SUM(valor * quantidade) as total
I'm not sure what to do.
what happens is this, this total "temporary" field that ref...
Hello, everyone.
I have a problem that I do not even know if there is a solution like this.
I have an ActionResult that returns the contents of a chart in Jquery.
The result of this graphic will always need to be cached so page does not...
I have these 2 templates, and the book has a list of language objects.
Model book
import { Language} from "./language";
export class Book {
id: number;
name: string;
language: Array<Language>;
}
Model language
export class L...
Good afternoon!
How do I execute a method of the Model class, in specific a method of insertion to the DB, in case I need to send the data of the Form.
This is the form in View (sector.php):
<form method="POST" enctype="multipart/form...