Oracle Code First Migraitons - Varchar2
Oracle Code First Migraitons - Varchar2
Is there any way to get the code first migrator create columns of type "VARCHAR2(10 BYTE)" instead of "VARCHAR2(10 CHAR)"?
Re: Oracle Code First Migraitons - Varchar2
As far as we concerned, a user expects that the datatype with 10 chars will be created in the database after setting the 10 symbols limitation for the string property of .NET class.
The BYTE semantics allows the situation when the database could have more strict length limitation for the column than the one for the corresponding .NET property. As a result, a string value could not be inserted into the database although it passed validation at the .NET level.
The BYTE semantics allows the situation when the database could have more strict length limitation for the column than the one for the corresponding .NET property. As a result, a string value could not be inserted into the database although it passed validation at the .NET level.