开发者

DAL and BLL naming conventions other peoples alternatives

开发者 https://www.devze.com 2023-01-06 23:37 出处:网络
Silly question really but just was wondering about other peoples naming conventions for DAL and BLL if t开发者_开发知识库here were any better names for them than those ones.I guess you mean the projec

Silly question really but just was wondering about other peoples naming conventions for DAL and BLL if t开发者_开发知识库here were any better names for them than those ones.


I guess you mean the projects you are creating.

If you follow ".NET Framework design guidelines"

  • Avoid SCREAM_CASE
  • Avoid such abbreviations

I usually see something like this:

CompanyName.Product.Data

CompanyName.Product.Logic

However one might argue where to put the logic or even if you should name it Logic or BLL at all. It depends on the system in wide, if you are creating a Banking system you might not want to put all logic in a Logic namespace but you might want to split it up into more spaces like:

BankName.Web.Authentication

BankName.Web.Transactions

Where these layers have their own set of logic layers.


OrganizationName.ProductName.LayerName
0

精彩评论

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

关注公众号