Eakub Islam
New member
- Joined
- Feb 3, 2024
- Messages
- 1
- Programming Experience
- 1-3
Create a console application to develop the following feature.
Create a Class named MyORM<G, T> which will have 5 methods. This class should be non-static.. Following methods should be non-static as well.
Your ORM should handle nested objects. List of objects and primitive types as well. Nesting will happen on multiple levels so you have to use recursion.
Nested delete operation should not use the Cascade feature, rather you should delete recursively. You can use the following classes to test. But make sure that your ORM works for other classes as well, if the tables are present in the database.
Use reflection and Ado.net to create this mini ORM system.
Create a Class named MyORM<G, T> which will have 5 methods. This class should be non-static.. Following methods should be non-static as well.
- Insert(T item)
- Update(T item)
- Delete (T item)
- Delete (G id)
- GetById(G id)
- GetAll()
Your ORM should handle nested objects. List of objects and primitive types as well. Nesting will happen on multiple levels so you have to use recursion.
Nested delete operation should not use the Cascade feature, rather you should delete recursively. You can use the following classes to test. But make sure that your ORM works for other classes as well, if the tables are present in the database.
Use reflection and Ado.net to create this mini ORM system.