Questions tagged as 'orm'

1
answer

How to show data from two tables in C #?

I built a webservice in C #. With a table it was easy to display but what if I have two tables how would I display those data? I did so that's the easiest way: [WebMethod] public String Teste() { SqlConnection Con = null;...
asked by 21.11.2016 / 13:54
1
answer

Dealing with nested objects (nesting) using an ORM

Let's assume that in a system for a bus company I have entities: Line, car and travel. Each has three classes: The entity itself, class Linha extends Model { protected $id; // outras propriedades. public function getId() {...
asked by 08.09.2016 / 05:15
2
answers

How to insert values from a Select field into the database

I am a beginner in Ruby on Rails and I need to add a Select field to the user registry form, so I can add a "Type" to the user to be registered. I want to automatically populate the fields when editing and viewing a user record. I'm implement...
asked by 27.07.2014 / 00:32
2
answers

Laravel - Update all fields of a large table

I have the following problem ... I am migrating a system, and in the same I own a table of clients This table has a field called " cli_password ", which represents the client password To use Laravel authentication I had to create a " pa...
asked by 04.09.2014 / 22:16
1
answer

Find random objects using conditions

I want to search for example 10 random people of the same party I did the following, but this is selecting people from all parties, what can be done? = D class Pessoa < ActiveRecord::Base class << self def filtra_pessoas(...
asked by 28.09.2016 / 07:17
1
answer

Fluent NHibernate - Key Mapping Compound

Greetings, I'm having a hard time and I can not solve it. I have an application where I created the mapping and everything was working perfectly, but now I need to change it and that's where the problem comes up: I used NHibernate Fluen...
asked by 05.02.2016 / 20:32
1
answer

Django and Oracle database (accessing your views via ORM)

Hello, despite the self explanatory title. I'll detail my doubt below. I have a pre-existing Oracle database, I integrated it with django by configuring the default connection in settings and running manage.py inspectdb > _models.py. So cr...
asked by 24.05.2017 / 04:58
1
answer

Development without EF ORM

It is worth developing without ORM, because today I want to develop an ERP, but I have no knowledge in any framework , is it worth doing everything at hand? Will I have the same result? Well, I realize that I'm wasting a lot of development t...
asked by 08.04.2017 / 00:57
2
answers

Mapping a Listlong in LINQ to SQL - Windows Phone 7.1

Problem I'm starting an application for Windows Phone 7.1, and I'm implementing the database, but I came across a situation that I did not find any similar situation to try to solve, and I also did not find anything to help me with the docu...
asked by 17.10.2014 / 04:38
1
answer

ActiveJdbc Validation Compound

I need to do a composite validation in ORJ ActiveJdbc and I'm not finding anything in the documentation. Something of the type, extends from the ValidatorAdapter class, but I'm not finding material to use as an example. Basically: public cl...
asked by 26.05.2016 / 03:48