Questions tagged as 'orm'

2
answers

Problem with AutoPersistenceModel FluentNHibernate C #

I have a problem with FluentNHibernate so I can use Auto Persistence Model , sorry if I do not spell the words correctly techniques. This is the structure of my project. I always used all the entities in the base in the data...
asked by 16.01.2017 / 20:21
1
answer

Filter by fields of the same model

I need to know how I can filter in a model that is an Invoice where I have two fields to pay and another that is paid, I have to do a filter to get the bills that have different amounts than paid to know which of the bills are unpaid. class Fa...
asked by 29.08.2018 / 15:16
2
answers

Laravel Consultation

Hi, I have a query in Laravel 5.5 that brings me what I need with the related data of 2 tables. My query is as follows: $facturas = ProgramacionPagos::select('*') ->where([ ['pagorealizado' , '0'], ['autorizado_c...
asked by 10.01.2018 / 19:20
1
answer

What is the difference between using the entity data model and the POCO template?

I would like to know what the difference is and what is better if I use the Entity Data Model template to generate the database model or use the POCO Reverse Generator template, just as it is better to install the entity framework dependencies f...
asked by 21.02.2017 / 23:48
3
answers

Error in Sequelize SQL query

I have this query: where: { $or: { $and: { mes: mes, any: any }, $and: { dia: 1, mes: 1 + Numbe...
asked by 10.03.2017 / 18:36
2
answers

Advanced consultation with Relationships in laravel

Good, basically what I want to generate is a query that returns a list of users, that have as excacto value the result of the difference of two fields. In other words, I have the user table that has the fields ndias and diasconsumidos. CUR...
asked by 10.05.2017 / 00:35
3
answers

Remove from the database the selected record in the Listvew (Using Entity Framework)

Continuing with the example of Listview show two fields in each row Visual Studio Community 2015 + SQLite + Entity Framework The database has 2 fields: ID and ShipType Class for mapping the database: namespace ImperialFleet { public...
asked by 20.11.2017 / 15:00
2
answers

problem when relating to the ORM eloquent de laravel

I am working on an application in laravel 5.5 that works with tabs (personal data) and I have the respective table I also have a table communes that is related to the tabs table is to say a one-to-one relationship a tab can have a commune, I hav...
asked by 28.02.2018 / 20:59
1
answer

Initialize a Lazy list in hibernate using a criterion with a parameterized SetAlias

I have the following code: criterio = session.createCriteria(Tecnico.class) .add(Restrictions.eq("expediente", usuario)) .add(Restrictions.eq("password", contrasenia)) .createAlias("empresa", "empresa", JoinType.LEFT_OUTER_JOIN) .setF...
asked by 10.03.2017 / 16:42
0
answers

Base Relations Mysql -

I'm a little confused with these relationships. I'm doing a game of questions and answers. In a group | Table | a user makes a publication with a series of questions ((in fact, that user who asks questions can only ask them who made the gr...
asked by 02.12.2018 / 02:52