Look at the code written by a friend, we express opinions, relatively simple code

Direct plug-:( I did not write, nor to attack others, but to come up with our discussion)

Reference problem:

1. Always feel so write code, the code will have a significant amount of scalability is not very good, for example, if a database in order to support 4-5, it is not to write the dead ah?

2. Array of parameters and database conversion, etc. always feel a little awkward.

3. string str more awkward, originally of type string, also added a front str, looking very uncomfortable, always feel redundant.

4. I generally do not specify the length of the argument, because the database there may be changes in length, if dead, writing in case of need to increase, but also to modify the code, tired, of course, I will not object to write strict code.

5. Some variable named para, some obviously as param, I also feel the kind of conflict before and after the code that belongs to a Microsoft C # in the name did not simplify, we'd better not mess own simplify, simplify simplify, finally not standardized, it is easy to mess up the hair, ha ha.

Of course, this demand, I am in the process of the underlying database, just write it once, the underlying database are automatically handled by the different wording of different databases,

"?" For example, when connected Oledb Oralce connection ":" "@" and so on are handled in the underlying access the database in use when SqlServer connection.

Instead of writing the business logic inside.

Welcome all friends to publish the code above to express their views.

 

 

 

 
I hope in the middle of the calf, bring you endless joy, would laugh every time I see the hearts of a lot less trouble.


REVIEW:
Crazy .NET architecture background generic rights management tool demo version 2.0 to download
a step by step teach you how to use common system permissions crazy .NET architecture - how to control user permissions menu displays
a step by step teach you how crazy .NET architecture a rights system - call privileges on a page to explain
step by step to teach you how to use common system permissions crazy .NET architecture - call permission data sets permissions to explain the
madness .NET generic rights design C \ S Admin, B \ S to call the front desk of the source sample program source code download --- authority to operate crazy .NET generic rights design C \ S management background, B \ S front desk to call the source of the sample program source code download --- role permissions crazy .NET generic rights design C \ S management background, B \ S sample program source code source code to call the front desk to download the data set of permissions --- Taobao address: http://list.taobao.com/browse/0/n-8ddf3d8a90550373fa749337efe29f03---- ----------- 40 - commend-0-all -0.htm




 

 

 

Reproduced in: https: //my.oschina.net/iwenr/blog/227965

Guess you like

Origin blog.csdn.net/weixin_34137799/article/details/91675053