开发者

DAL and BLL naming conventions other peoples alternatives

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜