Entity Framework translating number (1) into boolean help?

Im using Devart dotConnect for Oracle - Entity Framework + .NET 3.5. When I create Entities, the structure changes these colors (1) type numbers to bool. I read that this is a feature of all kinds of entities. But I do not want this .. We use the number (1) here to indicate the status of the db object .. as Clients - Situation.

I tried manually setting .ssdl "bool" to "int" and .csdl "Boolean" to "Int32" .. it just keeps the same conversion error ... if I use the "Run Custom Tool", it changes the field to bool and boolean.

I tried to change the property manually on the diagram too. without sucess.

+4
source share
2 answers

In your model explorer, you will need to change the data type of the column in the table in the ".Store" section of the model. The data type of class class.property in your xxxModel part must match the data type of the .column table in your xxxModel.Store. If you select Int32 in your class, you can select Decimal in the table.

+2
source
0
source

Source: https://habr.com/ru/post/1381956/


All Articles