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

Column Size

1 Answer 26 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.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 12 Jan 2012, 07:58 PM
Ok, so lets say this is the scenario

DB column is varchar(255)
OA is set to varchar(255)

...what happens?  Does OA check the length at all?  Or is that just a map to the DB and we should be good?

We need to up the size on a column, and we can't update the OA version just yet is the problem...

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 17 Jan 2012, 05:13 PM
Hello Steve,

 Updating the length of a column in the database will not cause problems with OpenAccess. OpenAccess does not check the length of a field value against its column length. The length of the columns is used as metadata information though. This means that if you try to generate the SQL script for your database, your column will be created with the length of 255. If you want your value to be taken into account by the Update Database From Model wizard, you should change the value in the OpenAccess metadata too.

Greetings,
Zoran
the Telerik team

SP1 for Q3’11 of Telerik OpenAccess ORM is available for download

Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Zoran
Telerik team
Share this question
or