總結一下.net項目中常見專業詞彙,包括命名空間,文件夾名,模塊名,類名等,不必定都對,僅供參考!!!設計模式
爲了不大量的重複單詞,每一個詞彙只出現了一次,但不表明,它不能夠在其餘模塊中出現。架構
項目命名:app
公司名.產品名.模塊名ide
舉例:ui
Microsoft.AspNetCore.Mvc.net
Tencent.Wechat.Web設計
Company.Audit.EntityFrameworkserver
常見的模塊分類:ci
最多見的,在分層架構裏有:產品
表現層: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.