Database Component hxj. Data (26) (Oracle configuration)

Source: Internet
Author: User

The providername of the connectionstrings node configured in Oracle is system. Data. oracleclient or hxj. Data. Oracle. Other operations are similar.

However, it is different from the auto-growth column in Oracle, so we need to handle it as appropriate.

Oracle obtains the Growth Value Through sequence, which is different from SQL Server's ease of setting column auto-growth.

 

You can modify the generated entity to set the auto-increment column.

For example:

A sequence named mysequence is created.

The auto-increment field in the table is kid.

Add the following two methods to the generated object to complete the auto-increment Field Processing of oracle.

Public override stringGetsequence (){Return"Mysequence";}Public overrideFieldGetidentityfield (){Return_. Kid ;}

 

In this way, the auto-increment value is returned after the insert operation.

 

PS: the new version of the entity generation tool fixes some features and adds the option of uppercase letters. Download

Related Article

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.