ADO.NET Native to EF6 MigrationADO.NET Native to EF6 Migration
A story is written with experience in migrating .Net codebase from SQL Server to Multiple Databases support.
galaxy
Product pages.jpeg
ADO.NET Native to EF6 MigrationADO.NET Native to EF6 Migration
A story is written with experience in migrating .Net codebase from SQL Server to Multiple Databases support.

ADO.NET Native to EF6 MigrationADO.NET Native to EF6 Migration

Why Migration?

For .Net based projects, SQL Server may not the only choice when it comes to enterprise. Considering Microsoft licensing change from processor based to core based in 2012, its not the pocket friendly option any more and demand for other databases has increased.

That forces many of the enterprise applications to support various other databases which offer great security features and licensing options.

Due to increased demand, one has to migrate to Object-Relational Mapping(ORM) framework or equivalent implementation based on needs.

ORM or Native Drivers:

Native Driver based implementation expects dynamic switching/multiple code bases. So, new database support may require changes to code base.

We have evaluated two ORM frameworks nHibernate and Entity Framework (EF6). We happened to choose EF6 considering better long term support for enterprise.

In my case, I have chosen EF6 with Code First approach. Code First approach enables us avoid database specific configuration files.

Performance Results (Native SQL Provider vs EF6 ORM):

  1. Performance tests are run on basic identical servers.
  2. ORM initialization is performed before running performance test.

Advantages:

  • EF Providers from respective DB owners is a huge advantage

  • Compiled queries with LINQ (Less run-time surprises)

  • No manual SQL statements

  • Automatic Query generation, which is SQL Injection Safe

Disadvantages:

  • Performance cost is upto 2X of ADO.NET without ORM. This can be covered with few optimizations, but it does not match with native performance.

  • No control over generation of query. This is acceptable, as long as support from providers is good. So far, Oracle, PostgreSQL and SQL Server seems very active and stable with latest releases.

  • Even though performance results are not encouraging, its features for multiple databases and fact that we can stick to one code base encouraged us to choose EF.

Things to be taken care during migration:

  • Unlike SQL server, most other databases are case-sensitive for table names and column names. In order to overcome these issues, we choose to create tables and columns by forcing case sensitivity same as Model.

  • In case your application uses Forms Authentication or similar which demands native providers. This part needs to be rewritten with a custom provider.

  • Free Style SQL queries has to be converted to LINQ. No more string based queries

  • Say No to most of the Stored procedures, as databases like PostgreSQL does not support them. By adding certain blocks, will force your app to stick to fewer databases.

  • For .Net applications, its common to use SSRS based Reports(Written in RDL). If that is the case, one has to convert all RDL based reports to RDLC reports.

Summary:

Essentially, EF6 has performance overhead compared to native drivers. But, it provides a great way to code using LINQ and achieve database portability. Learning curve for EF6 is minimal for a person who is familiar with LINQ.

Happy Coding!

galaxy
Reach out to know more
yellow star
What People say?
“Indo Zambia Bank is proud to mention that we are the first Bank in Zambia, to have implemented ALM to manage our balance sheets with the help of Surya’s BALM tool. The entire product cycle from sale to customization, development and Implementation was done within 6 months to take care of our immediate needs. Along with their BALM product, we went ahead to use other reporting products like FTP, Prudential, RCSA, Register incident, BASEL II etc due to their stupendous tech and efficiency of their tools. The team from Surya has been accommodative and reactive to our changes and went along with us to deploy solutions in a time-bound manner.”
Harikrishna Bommareddy
CFO
At NBS Bank we decided to engage the services of Surya Software Systems for their Bank Balance Sheet/Assets and Liabilities management system and we are happy to share that it was a great decision. We utilize their solution to assist us on optimizing balance sheet strategies with the enhancement of information as their system produces versatile and timely reports suitable for our departmental needs. Having this system enables us to focus on strategic and regulatory balance sheet management knowing that all the assets and liabilities management reports are automated and accessible through their application.
Our experience in working with Surya has been very positive and we would highly recommend them as they are able to accommodate all client needs without compromising their service standards.
Neema Kitta Mojoo
Manager – Asset & Liability Management
In 2014, Doha Bank decided to move to a structured ALM solution and decided to implement Surya BALM. In addition, it was decided to procure a FTP system to meet the profitability measurement requirements. These systems were implemented successfully within in a short span of time in Qatar, Kuwait & UAE. A consolidator that aggregates ALM positions at the head office has also been implemented.
Surya has helped to significantly reduce the end of day processing time to under 45 minutes. Besides the central bank reporting, BALM has helped the bank produce Basel III liquidity reports. We are happy to have partnered with Surya, support from them has been reassuring.
Gaurav Dhingra
Head of Financial Risk
I have been working with Surya Software for 15 years. There were several projects for various companies as different as Street lighting control systems or Watch Retail. The capacity of Surya to understand properly the issues related to specific businesses, to answer quickly to complex proposals, and to deliver on time appropriate developments, have given satisfactory and confidence to the end-users vis-à-vis Surya.
Henri MABILLE
CIO
Surya-soft’s BALM software provides Axis Bank with a Bank-wide asset liability management system capable of handling granular ALM data for both its domestic as well as overseas operations on a daily basis as well as consolidate liquidity positions using BALM consolidator. It offers the Bank an enhanced platform to meet its liquidity and interest rate risk monitoring and analytics requirements in addition to meeting regulatory and internal reporting needs
Pravat Dash
SVP & Head (Market Risk)
“Indo Zambia Bank is proud to mention that we are the first Bank in Zambia, to have implemented ALM to manage our balance sheets with the help of Surya’s BALM tool. The entire product cycle from sale to customization, development and Implementation was done within 6 months to take care of our immediate needs. Along with their BALM product, we went ahead to use other reporting products like FTP, Prudential, RCSA, Register incident, BASEL II etc due to their stupendous tech and efficiency of their tools. The team from Surya has been accommodative and reactive to our changes and went along with us to deploy solutions in a time-bound manner.”
Harikrishna Bommareddy
CFO
At NBS Bank we decided to engage the services of Surya Software Systems for their Bank Balance Sheet/Assets and Liabilities management system and we are happy to share that it was a great decision. We utilize their solution to assist us on optimizing balance sheet strategies with the enhancement of information as their system produces versatile and timely reports suitable for our departmental needs. Having this system enables us to focus on strategic and regulatory balance sheet management knowing that all the assets and liabilities management reports are automated and accessible through their application.
Our experience in working with Surya has been very positive and we would highly recommend them as they are able to accommodate all client needs without compromising their service standards.
Neema Kitta Mojoo
Manager – Asset & Liability Management
In 2014, Doha Bank decided to move to a structured ALM solution and decided to implement Surya BALM. In addition, it was decided to procure a FTP system to meet the profitability measurement requirements. These systems were implemented successfully within in a short span of time in Qatar, Kuwait & UAE. A consolidator that aggregates ALM positions at the head office has also been implemented.
Surya has helped to significantly reduce the end of day processing time to under 45 minutes. Besides the central bank reporting, BALM has helped the bank produce Basel III liquidity reports. We are happy to have partnered with Surya, support from them has been reassuring.
Gaurav Dhingra
Head of Financial Risk
I have been working with Surya Software for 15 years. There were several projects for various companies as different as Street lighting control systems or Watch Retail. The capacity of Surya to understand properly the issues related to specific businesses, to answer quickly to complex proposals, and to deliver on time appropriate developments, have given satisfactory and confidence to the end-users vis-à-vis Surya.
Henri MABILLE
CIO
Surya-soft’s BALM software provides Axis Bank with a Bank-wide asset liability management system capable of handling granular ALM data for both its domestic as well as overseas operations on a daily basis as well as consolidate liquidity positions using BALM consolidator. It offers the Bank an enhanced platform to meet its liquidity and interest rate risk monitoring and analytics requirements in addition to meeting regulatory and internal reporting needs
Pravat Dash
SVP & Head (Market Risk)
“Indo Zambia Bank is proud to mention that we are the first Bank in Zambia, to have implemented ALM to manage our balance sheets with the help of Surya’s BALM tool. The entire product cycle from sale to customization, development and Implementation was done within 6 months to take care of our immediate needs. Along with their BALM product, we went ahead to use other reporting products like FTP, Prudential, RCSA, Register incident, BASEL II etc due to their stupendous tech and efficiency of their tools. The team from Surya has been accommodative and reactive to our changes and went along with us to deploy solutions in a time-bound manner.”
Harikrishna Bommareddy
CFO
At NBS Bank we decided to engage the services of Surya Software Systems for their Bank Balance Sheet/Assets and Liabilities management system and we are happy to share that it was a great decision. We utilize their solution to assist us on optimizing balance sheet strategies with the enhancement of information as their system produces versatile and timely reports suitable for our departmental needs. Having this system enables us to focus on strategic and regulatory balance sheet management knowing that all the assets and liabilities management reports are automated and accessible through their application.
Our experience in working with Surya has been very positive and we would highly recommend them as they are able to accommodate all client needs without compromising their service standards.
Neema Kitta Mojoo
Manager – Asset & Liability Management
In 2014, Doha Bank decided to move to a structured ALM solution and decided to implement Surya BALM. In addition, it was decided to procure a FTP system to meet the profitability measurement requirements. These systems were implemented successfully within in a short span of time in Qatar, Kuwait & UAE. A consolidator that aggregates ALM positions at the head office has also been implemented.
Surya has helped to significantly reduce the end of day processing time to under 45 minutes. Besides the central bank reporting, BALM has helped the bank produce Basel III liquidity reports. We are happy to have partnered with Surya, support from them has been reassuring.
Gaurav Dhingra
Head of Financial Risk
I have been working with Surya Software for 15 years. There were several projects for various companies as different as Street lighting control systems or Watch Retail. The capacity of Surya to understand properly the issues related to specific businesses, to answer quickly to complex proposals, and to deliver on time appropriate developments, have given satisfactory and confidence to the end-users vis-à-vis Surya.
Henri MABILLE
CIO
CLIENTS SERVED
© Copyright 2024 Surya Software Systems PVT. LTD. All Rights Reserved