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

ORM Usage

2 Answers 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 19 Aug 2014, 03:24 PM
Hello,

I am trying to setup a small test that uses an ORM to read data from our database using Test Studio's Code Behind option..  So far I've referenced our ORM/Telerik.OpenAccess/Telerik.OpenAccess.35.Extensions.  If I bring down the latest version of our ORM and reference it in the test I am able to run it and return the desired results.  However, if I choose to build the ORM (after changing the database or doing nothing to it at all)  the test then fails and returns the following error:

Telerik.OpenAccess.OpenAccessException: Application id class 'Telerik.OpenAccess.RT.OID.IntIdentity' used by class 'ezoneORM.CourseSection' must have field: 'public System.Int32 _courseSection_pk'.

This field is never altered yet after a build it seems to dislike the ORM.dll. 

Any ideas?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 19 Aug 2014, 03:34 PM
I've read that it could be a mis-match of reference versions.  But is there a way to see what versions I currently have referenced in the project on Test Studio?
0
Ivaylo
Telerik team
answered on 22 Aug 2014, 11:33 AM
Hello Andrew,

Yes you can see what version you have referenced by going to Project Settings > Script Options. 

Please refer to the screenshot attached.

About accessing database please refer to this link.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or