business-layer

Common structures between business layer (BLL) data access layer (DAL) and UI?

陌路散爱 提交于 2020-01-01 11:54:49
问题 I want all my layers BLL ,DAL and UI to share classes (concrete or interfaces). Is this really a bad practice? I prefer not to return datatables from my DAL methods but instead to return objects that BLL can use directly. I want to have a separate VS project with the classes that all layers should know about. Example: I want to define a lot class that all layers should be aware of. UI should be able to receive lot classes in order to display or make possible for the user to submit a lot to be

Use Server.MapPath in Business Layer

限于喜欢 提交于 2019-12-14 03:41:29
问题 My business layer creates files and needs to save them in the App_Data folder of my asp.net mvc 4 web frontend. I could use Server.MapPath in the business layer to get the physical path of the App_Data folder. But i want to avoid a reference to System.Web in the business layer. Are there other ways to get the path to App_Data in business layer? 回答1: The correct way to deal with this is to have the presentation layer pass the path into the business layer. To put this another way, the purpose

Use Server.MapPath in Business Layer

◇◆丶佛笑我妖孽 提交于 2019-12-04 04:31:11
My business layer creates files and needs to save them in the App_Data folder of my asp.net mvc 4 web frontend. I could use Server.MapPath in the business layer to get the physical path of the App_Data folder. But i want to avoid a reference to System.Web in the business layer. Are there other ways to get the path to App_Data in business layer? The correct way to deal with this is to have the presentation layer pass the path into the business layer. To put this another way, the purpose of having a business layer is to create a separation of concerns between the ui and business processes. If