一些常见的专业命名词汇
总结一下.net项目中常见专业词汇,包括命名空间,文件夹名,模块名,类名等,不一定都对,仅供参考!!!
为了避免大量的重复单词,每个词汇只出现了一次,但不代表,它不可以在其他模块中出现。
项目命名:
公司名.产品名.模块名
举例:
Microsoft.AspNetCore.Mvc
Tencent.Wechat.Web
Company.Audit.EntityFramework
常见的模块分类:
最常见的,在分层架构里有:
表现层:Web, Presentation. WebApi, UI,
表现层中常见的一些词汇:
Filters,Attributes, Models, Startup, Authorization,Extensions, Validation, Localization,Sessions, Auditing, ModelBinding, Resources, Security, Exception, ExceptionHandling, Registration,Hosting,Token,Themes,Permission,
业务逻辑层:Application, Domain, Service, Core, Bussiness Logic,BLL,
Interface, Implementation,Entity,Manager,Management,Config, Configuration,Provider, Module, Event, Enum, Dto,Table,Column,Key
数据访问层:DAL, DataAccess, ORM, Infrastructure
Repositories, UOW, UnitOfWork, Mapping , SeedData,SeedWork, Utils, Interceptors, Factory, Migration,Persistence,Context, Compare,
还有一些公共类库的常见词汇:
Caching,Logging,Supervisor, Globalization, Notification, Backgroud, Message, Plugins, Reflection, Specifictions, Threading, Options, Serializer,Runtime,MultiTenancy, Accessor,Framework, Initialize, Assembly, Wrapper, License, Template, Reference,Generator,IOC, DI,Dependency Inject, Trigger, Helper, Converter, Settings, Engine, Parser. Sharing
设计模式中的词汇:
Builder, Adapter, Proxy, Bridge, Command, Decorator, Iterator, Interpretor, Observer, Mediator, State, Facade, Singleton,Prototype, Reponse, Strategy, Composite, Abstract.