Design and manage CRUD in library app without database
We are required to design simple CRUD operations for library management system without using the database. Please let us know on how we can design this requirement (without using DB) in .NET using C# language.
Munesh SharmaPosted May 3, 2016, 12:58 PM
Afzaal Ahmad ZeeshanPosted May 3, 2016, 12:26 PM
Naveen K MPosted May 2, 2016, 11:50 PM
Afzaal Ahmad ZeeshanPosted May 2, 2016, 4:41 AM
Afzaal Ahmad ZeeshanPosted May 2, 2016, 4:39 AM
- Create objects
- Read objects
- Update objects
- Delete objects
Where the objects are? In your data source, now typically data sources are confused with a database. Whereas, data source can be anything:- Database (of course!)
- File
- Network resource
- User input
- Etc.
For example, this article of mine: http://www.c-sharpcorner.com/UploadFile/201fc1/consuming-Asp-Net-5-web-api-with-crud-functions-in-windows-1/, I used JSON files to configure and set up my data source. JSON files are a good alternate for the databases and I have explained how to implement CRUD for JSON files. You just need to create an object that can perform these functions (CRUD functions), on the data source.Ibrahim ErsoyPosted May 2, 2016, 4:32 AM
Use Rest HTTP Methods(Get,Post,Put,Delete) to complete CRUD operations task
http://www.c-sharpcorner.com/search/web-api
http://www.c-sharpcorner.com/article/crud-using-mvc-web-api-and-angularjs/
If not try Afzaal's method using json as data source:
http://www.c-sharpcorner.com/UploadFile/201fc1/consuming-Asp-Net-5-web-api-with-crud-functions-in-windows-1/
@Afzaal I agree with you but I adviced Web API so that if he wants to build up platform-independent solutions in the future based on the crud operations,he doesnt need to change or rewrite any code.