作者: Sizemore24 (newborn in Tampa) 2015-06-18 07:31:56
(我人在外面,暫時還沒辦法跑 benchmark) 想請問各位強者,若在 ASP.NET 4.5 Web 專案底下, 用直覺判斷,這兩種寫法哪種較好? (當然以分層概念,我覺得 Case 1 寫法上,區分比較清楚) Case 1: In App_Code 1. static QueryTable(sql) in A.cs 2. In Query(), Call QuertTable() in AA.cs In Web Project 1. Call AA.Query() in BB.aspx.cs