The four basic operations for a data management system: Create, Read, Update, Delete
3
votes
0answers
47 views
A clean way to do CRUD with pagination
What do you think about the following approach to CRUD? Here is the reading+pagination example. DTO types have Dto* prefix, EF Entity Types have E* prefix.
DAL example:
...
14
votes
1answer
97 views
Example script for teaching DDL and CRUD/DML operations
I have taught some SQL to others before, and I thought of making a script that has these attributes, for the purposes of teaching:
Fully functional to run on local DB instance with no fuss
Easy to ...
2
votes
1answer
106 views
Separate model from DB mapper (entity manager)
I've read that it is good to separate model from DB mapper (entity manager) (but at the end, it is perhaps personal - just a matter of opinion). Anyway, if I understood correctly, I should not have ...
1
vote
0answers
63 views
Update operation with hibernate
I am creating a project about hotel reservations. I created a udirection one to many relationship between users and reservations. That is, A user can have many reservations.
Here is the User class.
...
2
votes
1answer
116 views
Basic CRUD application for Product, Category & Location with SQLite
I improved the code from my previous question.
At this moment, the 3 entities have not yet a connection with each other. They should only be available for CRUD actions in a SQLite database.
I would ...
4
votes
2answers
88 views
ProductManager: a basic CRUD for products with SQLite
I would like to have a review of this basic CRUD application so I can improve and learn from your experience. The code can be found here.
Design pattern/coding principles improvement that could be ...
2
votes
1answer
73 views
Controller.js of CRUD vehicles
I never took an application in a Model-View-Controller architecture and have some difficulties in front-end. The following code works fine, but what can I do to make "layers" of better code and even ...
2
votes
1answer
113 views
A color class and a CRUD class for it
Is it better to have only one class color and include the functions from the second class in the 1st one? Or leave them apart?
Why is one better than the other or ...
0
votes
1answer
39 views
Watch for CRUD state changes and make sure only one is active at once
I'm using AngularJS and I have a watch task in my controller that needs to be dried up if possible.
Basically it watches for state changes in my front end. I have 3 buttons: add, edit, and delete ...
0
votes
1answer
56 views
Naming a complex crud function
I have a function below that does the following uses a bunch of smaller CRUD operations which I call create, ...
2
votes
1answer
366 views
Angularjs CRUD views, controllers, navigation
I just started to learn AngularJS. I created a simple site using ASP.NET MVC as a backend.
I created 1 main view and 4 partial views for the CRUD operations with a Company Entity.
In the main page I ...
1
vote
0answers
91 views
Folder model controller view
I'm using a slim router and have made a folder model controller view. Below is one of my model files. I made one database with one model.
I have some problem in my project: there are several ...
4
votes
1answer
228 views
Node module for DRY CRUD endpoints
As a learning project I recently started writing a node module to generate / handle the creation of CRUD endpoints in a DRY way.
The problem I was initially wanting to solve was that in my ...
2
votes
1answer
183 views
UserDAO with CRUD functionality for my UserRepository
This is my first attempt at creating a DAO.
I would like to get some feedback regarding the following aspects if possible:
Code readability
Efficiency
Usability
I also would appreciate any other ...
3
votes
1answer
877 views
Flat-file DB with CRUD
I just finished writing a flat-file DB class for PHP which supports selecting, updating, inserting and deleting.
I was wondering if there are any ways to make it faster or if I'm doing anything the ...
1
vote
2answers
163 views
CRUD menu creation
I would like to re-write this C# code so it is easier to understand. Should I create a separate function to configure a menu item? Is there is some kind of using ...
1
vote
1answer
2k views
Reusable project for CRUD
I wrote this class to make it reusable in any project. It uses PDO as the MySQL connection. Beside not using Setters and Getters, is this code secure and good practice for CRUD?
...
1
vote
2answers
716 views
Preparing code for more versatile CRUD functions
I am using C# and the .NET entity framework, and I'm also learning how to better use OOP concepts in my program. My code is all displayed below. I would like to ensure my logic is properly organized ...
2
votes
1answer
576 views
CRUD app for managing customers
I am practicing using the Prototype pattern and to do so, I am building a simple CRUD app that allows me to view, add, and delete customers.
Here is a JsFiddle for you to see what I've got so far.
...
5
votes
2answers
2k views
User Authentication/Permissions for PHP MySQL CRUD
I took my first stab at a user authentication function. I invented my own way of doing this. Is this a safe and efficient way of giving a user Read/Edit/Delete permission on tables in a MySQL ...
3
votes
1answer
248 views
C in CRUD for Silverlight
The C in CRUD Silverlight:
Create new Silverlight business application "CRUD"
Add ADO.NET Entity Data Model to CRUD.web
Select the db, the tables, build the project
Add Domain Service Class to ...