Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net .NET分层命名约定_Vb.net_Design Patterns_Naming Conventions - Fatal编程技术网

Vb.net .NET分层命名约定

Vb.net .NET分层命名约定,vb.net,design-patterns,naming-conventions,Vb.net,Design Patterns,Naming Conventions,我了解.NET中的命名约定,例如,类名称、方法名称和实例变量使用Pascal大小写,方法参数使用Camel大小写。不要使用匈牙利符号,例如用cls作为类的前缀或用int或str作为数据类型的前缀等 我的问题是,;这如何应用于不同层中的类名?有些人说使用名称空间来隔离它们,例如数据访问层Person有com.application.dal.Person,业务逻辑层Person有com.application.bll.Person,而另一些人说仅仅有PersonDAL和PersonBLL(不同的类名

我了解.NET中的命名约定,例如,类名称、方法名称和实例变量使用Pascal大小写,方法参数使用Camel大小写。不要使用匈牙利符号,例如用cls作为类的前缀或用int或str作为数据类型的前缀等

我的问题是,;这如何应用于不同层中的类名?有些人说使用名称空间来隔离它们,例如数据访问层Person有
com.application.dal.Person
,业务逻辑层Person有
com.application.bll.Person
,而另一些人说仅仅有
PersonDAL
PersonBLL
(不同的类名)

我想知道微软对此有何建议?我查看了MSDN,但没有找到答案