Author:
Ullah Atta,Usman Muhammad,Abrar Muhammad F.,Ullah Najeeb,Shah Ibrar A.,Nadeem Muhammad F.
Abstract
In .NET, Object Relational Mapping (ORM) is a programming technique used for accessing the database, which has many frameworks, like Entity Framework, LINQ to SQL, NHibernate, Tele rick Open Access, Light Speed. The LINQ to SQL and Entity Framework usability has increased. This is because of the reason that in these two frameworks full CRUD (Create, Read, Update and Delete) operations can be implemented in short time as compared to Transact Queries, which require more time. In case of multiple projects on various models; Transact Query, LINQ to SQL, and Entity Framework, it becomes difficult to decide which model is the best in terms of performance and security. Therefore, in this article, we provide a comprehensive comparison between Entity Framework, LINQ to SQL and Transact Queries in terms of performance and security. For this purpose, we implemented eleven different types of queries on the selected three frameworks. Subsequently, we quantified and evaluated the execution time and memory usage of all the queries. Furthermore, all types of SQL injection attacks have been applied on three separate applications for security evaluation. Our results show that, the Transact Query is more vulnerable to SQL injection attacks as compared to LINQ to SQL and Entity Framework. Our results show that Transact Query outperforms in terms of memory and CPU usage. Our results also help the practitioner in adopting a framework on the basis of query level performance in terms of memory and CPU usage.
Reference12 articles.
1. Dick, J.R., Kent, K. B. And Libby, J.C (2008) A Quantitative analysis of the .NET common language runtime. Journal of Systems Architecture, 554:679-696
2. M. H. Lutz and P. A. Laplante (2003) C# and the .NET framework: ready for real time. IEEE Software, vol. 20, no. 1, pp. 74-80, doi: 10.1109/MS.1159034
3. J. Richter (2000) Microsoft .NET Framework Delivers the Platform an Integrated Service-Oriented Web. MSDN Magazine
4. ROSS MISTRY. Stacia Misner (2014) Introducing Microsoft SQL Server 2014. Washington, Microsoft Press
5. Dr V.Sivakumar, T.Balachander, Logu, Ramu Jannali (2021) Object Relational Mapping Framework Performance Impact. Turkish Journal of Computer and Mathematics Education, Vol.12 No.7, Pages 2516-2619