CYQ.Data lightweight road data layer of Frequently Asked Questions QA (thirty)

Description:

Here write about CYQ.Data frame during use, the question everyone is easy to use for some reason resulting from the incorrect answer.

 

 

A: Support Description

 

1: Support Services

A: V1.4 and higher versions support transactions, the default new MAction that is open affairs, submit and close the transaction / EndTranstion until the call Close / Disponse.

 

2: Support Winform

A: V1.5 version and higher support Winform, including direct binding and UI operations.

 

3: support for multi database version

A: V1.3, V1.4, V1.5 version supports SQL2005 only.

B: V1.5.5 version supports SQL2000 / 2005.

B: V2.0 version and higher support SQL2000 / 2005, Access, Oracle.

Description:

From the compatibility of that theoretical support SQL 2008, but pay attention to close a case-sensitive [paging stored procedure parameters @SQL and @SQl case for Yi will lead to error]. 

 

4: Support Aop

A: V2.0 version and more support

 

 

II: Common application problems

 

1: check whether the stored procedure generates SelectBase tab [not Acess database (built into)]

Question: Some people do not read the article, just wanted to try, try, Fill or Select no data, they begin to ask questions.

 

2: Check the database design conventions

A: All database tables are agreed first field named "ID", not a different name and ID at the same time needs to be set for a keyword

B: MSSQL: ID int type if it is required to set the gain self ID, if it is the Guid, then do not set

C: Oracle: ID agreed to an int sequence index increment the default name "AutoID", may configure a custom name.

Question: Some people prefer to set AID.PID table, please note that under this provision problems, some people have forgotten the ID as a keyword, resulting in an enumeration generated ID is not in the first column. Insert given when the final or fetching data.

 

3: Check the generated enumeration

A: enumeration acknowledgment generated first table is related to the field ID, [by default sort key]

B: note the enumeration is with the name space.

Problem:
1: ID if not in the first place, you should check the database design
2: Some of the newcomers are not familiar with the name space will cause an error when the name space for Yi, this problem when unravel, to the group to ask.

 

4: My database is SQL2000

A: V1.4 version has some small Bug on SQL 2000 support, use V1.5.5 or later

Question: Some people operating sql 2000 with V1.4 version, operating problems.

 

5: Frequently Asked Questions debugging and debug mode

A: V1.3, V1.4 version with source code, please use the source code debugging problems encountered, encountered insurmountable problems can be made to the group [ group number is shown in the left announcement ] ask, or ask the author himself.

B: V1.5.5 version of the open source version, but need to provide a way to obtain the source code amount CYQ.Data practical application of the project description and URL [specific back will open with instructions related V1.5.5]

C: V1.5.5, V2.0 version of the problem, first check the above problem, and then to group questions, or ask the author himself.

D: V2.N series version, there DebugInfo, you can view all of the information specific sql executed, first to see if a problem occurs.

 
6: Use the solution requires a strong signature in the Winform [provided by Johnses]
05233503_ayf7.gif
1. Open the SDK Command Prompt window;
2. Create a new random key pair:
sn -k CYQ.Data.snk
3. decompile the target assembly
ildasm CYQ.Data.dll /out=CYQ.Data.il
3. recompile, with strong named parameters
ilasm CYQ.Data.il / DLL /resource=CYQ.Data.res /key=CYQ.Data.snk / Optimize
4. verify the signature information
sn -v CYQ.Data.dll

 

 

7: Other issues

A: To be added, please feel free to focus on the latest version

Reproduced in: https: //my.oschina.net/secyaher/blog/274197

Guess you like

Origin blog.csdn.net/weixin_33816821/article/details/91966696