C#/JS Code Naming conventions

Source: Internet
Author: User

Common naming

List, Luser array, arruser string, strtitle, split string, Strstatuss (multiple states separated by commas) C #Entity layer unification starting with E, such as euser,eorder, such as the creation of the object is Var euser=new euser ();D to layer (search object layer) unified to D, such as Duservar duser=new Duser (); Multi-table search objects to d+ Each table name, Duserorder property Description Equal,notequal,equalgreatthan,greatthan,equallessthan,lessthan,startwith,endwith, Containrepository layer (persistence layer)unification begins with R, such as Ruser, etc.var ruser=new ruser ();Multi-table persistence, formatted as Ruserorder, commonly used for select,leftjoin of multiple tables, etc.method Name: Getlist,get,insert,edit,del as headService Tier (services tier)Unity begins with S, such as Suservar suser=new suser ();Controller Layerunify end with controller, Usercontroller Css/js/jquerymethod names have been camel-written, such as Ajaxedituser,searchformattribute names are unified lowercase, such as insert,popup,update,del, etc.css/js file name Unified lowercase, common.js, source file used Common_source.js

C#/JS Code Naming conventions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.