Questions tagged [crud]

The four basic operations for a data management system : Create, Read, Update, Delete

The four basic operations that can be used on a relational database table are

  • C reating
  • R eading
  • U pdating
  • D eleting

A CRUD application is one that performs these basic operations. A CRUD framework is an application framework that gives these functionalities as a base for the development.

Also see: , ,

4608 questions
1
vote
3 answers

kendo grid delete - confirmation window issues

I have problem with confirmation popup during deleting item. When I click "Delete" confirmation window is popup-ing more times than one, and I don't know why. And second question is how I can change text of that window? I tried This code but don't…
Denis Stephanov
  • 4,563
  • 24
  • 78
  • 174
1
vote
1 answer

Entity Framework 4 POCO CRUD Repository - How to perform Smart INSERT/UPDATE?

This could be a simple solution, but.... If i have a Entity Framework 4 Repository which exposes the following interface: void InsertOrUpdate(Foo foo); And my EDM is done with custom POCO's (no code generation), how do i perform UPDATE's to…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
1
vote
1 answer

visual studio xamarin and mysql crud

I have not found any example to work with visual studio xamarin with mysql crud using mysql connector. It would be great to have it, I hope somebody can provide such example.
1
vote
1 answer

How to create a new document 'if not exists' and return the new document with MongoDB NodeJS native driver

I want to create a new document if it doesn't exist and return the new document once created, however if the document already exists I would like an exception to be thrown. I think the way I am doing this seems hackish, is there a better means of…
Aage Torleif
  • 1,907
  • 1
  • 20
  • 37
1
vote
1 answer

Symfony can't load FieldVote

I created a CRUD from an existing entity, everything went fine until I went to see the result, where I'm getting the following error : (Using Symfony 3) Attempted to load class "FieldVote" from namespace "Symfony\Component\Security\Acl\Voter". …
Jaeger
  • 1,686
  • 1
  • 30
  • 50
1
vote
2 answers

add multi columns in many-to-many relation using fk-relation in xcrud

I have three tables : orders : id_order PK int id_client . . . etc ... Products : id_product PK int product_name varchar(255) . . . etc ... orders_products id PK int id_order FK int id_product FK int quantity int discount float and Im…
ADiL
  • 367
  • 4
  • 17
1
vote
1 answer

how to test crud operations in java

Please explain how I can test CRUD operations in java like these: public void insert(User user) { Connection con = null; PreparedStatement ps; try { con = DatabaseConnection.dbCon(); ps = con.prepareStatement("insert into…
CodeBanga
  • 11
  • 2
1
vote
1 answer

Rails submit button works only after reloading view

I have a rails form that works well when creating a new model but is buggy when it comes to editing an existing one. This is the behavior: When on the edit view, the submit button will not work. If I hit reload, once the edit view has rendered…
Jorge Cuevas
  • 755
  • 3
  • 10
  • 30
1
vote
3 answers

Delete Multiple Selected Data in PHP/MySQL

Good day, I've seen a couple of threads with similar questions but I can't seem to implement the suggestions on my practice project. is there any way I can add a function where my selected items can be deleted at once? Here are my…
ndg
  • 59
  • 1
  • 9
1
vote
1 answer

Calling static function returns NULL if object is not instanced? PHP OOP

Greetings good people, I am running with some issue with OOP recently. First, I am looking to create CRUD Db class from scratch. This is a code: class Database{ public static $link; public $message; public function __construct ()…
fugitive
  • 357
  • 2
  • 8
  • 26
1
vote
0 answers

Entity: ForeignKey object is always null

I have a problem (some kind of "two-faced" because in first example code works, in second - not). When I use Create function for Category, field "RootCategory" autofill by Category-object with RootCategoryId (or null, if it's needed). That's work…
V.R.
  • 11
  • 2
1
vote
1 answer

How to store data within a callback on a global variable?

I'm trying to write a method to fetch all of the current saved students in my firebase database. But I wasn't able to store these data on the global variable students. How to do that? I couldn't figure out how to fix this scope problem it with OOP's…
1
vote
5 answers

Can you create applications in Excel?

My friend said he was going to create an application inside of Excel. I told him that maybe he meant macros but he seemed convinced he could create a typical CRUD application INSIDE of Excel. Is this true?
delete
1
vote
1 answer

When using the destroy method "Couldn't find user with id" error

I'm making a CRUD app, and everything works except destroy. When I click on a delete button when I'm in the edit page, I get the following error: ActiveRecord::RecordNotFound in TravelersController#show, Couldn't find Traveler with 'id'=14,…
colmol29
  • 47
  • 6
1
vote
0 answers

Using a list as database context

I have a C# list filled with data converted from a JSON file. Now I want to have CRUD functionality on the items in the list. I have made a model etc, to deserialize the JSON into the list. Now my question is. Can I use this list as my Database…
peer
  • 1,001
  • 4
  • 13
  • 29