开发者

Business Layer/Code-Behind Performance Question

I was wondering if anyone knew if there was a performance boost of any kind in C#/ASP.NET due to moving database calls from 开发者_如何学运维the code-behind to the underlying business logic class library.

My understanding is that the class library is compiled, whereas the code-behind is interpreted.


The code-behind is also compiled.


Like everyone else has stated, performance wise there is no difference, it is all compiled.

For design purposes and re usability you would want all database calls to be located in a separate project which is considered the DAL or data access layer, your business logic layer would sit on top of this and handle the data that is passed from the DAL.

Database => DAL => Business Logic/Entities => Optional Service Layer => Presentation (Your case an ASP site i believe?)

This will lend greatly to upkeep of your solution.


Outside of a debugger, C# is never interpreted.

There will be no inherent performance difference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜