Questions tagged as 'model'

1
answer

Can a DAO be called by a Repository?

Searching and reading information about the main differences of a DAO and a Repository a DAO is based on a table in the database and a Repository returns something that in higher layers is understood (bussiness object) according to this post:  ...
asked by 01.10.2018 / 06:49
1
answer

Show new BD field in cakephp view

Well the problem is as follows, create a field in the database @KacosPro and connect a page to make an ibdate in this. The thing is that now I must connect it from another page that shows a table, the thing is that it does not do anythi...
asked by 24.04.2018 / 17:57
2
answers

Tables other than the model

I have a project that we are managing by models in back and front (angular-spring). I made a personalized consultation, to bring me the data in the model, and it brings them well, but if I enter the capture form when trying to save them,...
asked by 27.12.2017 / 21:08
1
answer

database modeling

I have the following diagram, I have 2 questions. 1) a user has variables, these variables are times, errors and others, so that the change is flexible, should he create another intermediate table? 2) a user has errors and time...
asked by 09.02.2017 / 16:57
2
answers

How to declare (map) a SQL_VARIANT in a Model - C # [UWP]

Good thing I have a table in SQL: CREATE TABLE Parametros( Empid int NOT NULL CONSTRAINT [FK_Parametros_Empid] REFERENCES Empresa(id), Codigo varchar(25) NOT NULL, Valor sql_variant NULL, CONSTRAINT [PK_Paramet...
asked by 17.10.2018 / 14:55
1
answer

Error creating Feed with Ruby on Rails

I'm creating a Microposts Feed , with Ruby on Rails and MongoID. When accessing the user's profile, I get the following error, which I think derives from feed in the user.rb file. The error that shows me is the following undefined...
asked by 21.09.2018 / 11:52
0
answers

Decimal DataAnnotations does not validate more than 999,999

I have a decimal that when entering a value greater than 999999 this does not leave it as valid in the model state. [Required] [Range (0.9, errormesage ...)] public decimal variable {get; set;} I have tried removing the dataannotations by...
asked by 11.09.2018 / 22:28
0
answers

Creation of seeder in laravel with multiple for each

public function run() { // $this->call(UsersTableSeeder::class); $users = factory(App\User::class, 1000)->create(); $users->each(function (App\User $user) use ($users) { $negocio = factory(App\Neg...
asked by 19.07.2018 / 22:50
2
answers

Is it correct to access a model from another model in CodeIgniter?

A few days ago some questions arose from a functionality that I had to implement.    Is it correct to invoke a model from another model?       Does my security affect anything?       Is it anti-functional? It worked perfectly for...
asked by 19.07.2018 / 17:05
1
answer

Rails 5, model all fields in capital letters

In ASP NET MVC I can create a class library where I have help classes for different situations (date conversion, encryption, etc.), but I have a specific one that receives my model and goes through the properties and those that are type Stri...
asked by 20.05.2018 / 20:18