简体   繁体   中英

System.Data.DbType Vs System.Data.SqlType

Am using enterprise library data access application block... is there any performance impact of using System.Data.DbType Vs System.Data.SqlType ?

And also, would like to know performance impact for the statement:

DatabaseFactory.CreateDatabase("MyDB") 

Vs

new SqlDatabase(myConnectionString);

The impact here is not one of performance but more explicitness versus flexibility. the DBType and DatabaseFactory methods are more flexible and allow you to flip the type of database you are using. You might see a small bit of perf in the other direction, but not enough to make your decision based on perf.

Any performance difference will be neglible (especially compared with database accesses).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM