This is a migrated thread and some comments may be shown as answers.

[Solved] Is there any problem to use the database without OpenAccess ORM?

3 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tajes
Top achievements
Rank 1
Tajes asked on 15 Nov 2010, 05:22 PM
Hello,
    We were wondering if we can create a C# aplication with OpenAccess ORM mapped to a DataBase in MySQL, and on the other hand to have a application made in Visual Fox Pro that connects to the same DataBase using a ODBC driver.
    Does OpenAccess make something in the database that means a problem to the other application? Will it be a problem inserts, updates, deletes in related tables that represents related persistent classes?


Thanks an sorry for my English.

3 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 16 Nov 2010, 09:14 AM
Hello Iván Tajes,
There are no problems using OpenAccess applications in parallel to other programs.

You just have to make sure that you do not break the OpenAccess internal key mechanism, if used. If you do not specify a primary key field in OpenAccess, we add a non visible field to the class/table that contains the key calculated by a HighLow key generator. If you now insert rows into such a table this will probably break our key generator mechanism and you might see duplicate key exceptions.

Kind regards,
Jan Blessenohl
the Telerik team
See What's New in Telerik OpenAccess ORM in Q3 2010!
Monday, November 15, 11 am Eastern Time: Register here>>
Monday, November 15, 10 pm Eastern Time: Register here>>
0
Tajes
Top achievements
Rank 1
answered on 16 Nov 2010, 09:30 AM
Then, if we fill the primary keys and foreing keys correctly (not empty, not duplicate and foreing keys that exists) It won't be a problem?

And if we use the autogenerate key feature of MySQL, will it work correctly?

Thanks.
0
Accepted
Jan Blessenohl
Telerik team
answered on 16 Nov 2010, 02:55 PM
Hi Iván Tajes,
Yes, yes.

Best wishes,
Jan Blessenohl
the Telerik team
See What's New in Telerik OpenAccess ORM in Q3 2010!
Monday, November 15, 11 am Eastern Time: Register here>>
Monday, November 15, 10 pm Eastern Time: Register here>>
Tags
General Discussions
Asked by
Tajes
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Tajes
Top achievements
Rank 1
Share this question
or