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

How to interpret a boolean (yes/no) column from Backend Services

1 Answer 36 Views
.NET SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sulu
Top achievements
Rank 1
Sulu asked on 20 May 2014, 03:56 PM
I didn't find this in the documentation for Backend Services under .NET, so I have to ask, what is the proper way to interpret yes/no columns when data comes back from Telerik? I would have thought Integer, but I'm not so sure. Here is what the documentation says:

Telerik Backend Services Type .NET Property Type 
Id                                                      Guid 
Text                                                  string 
Number                                            int, double, Enum
Date and Time                                DateTime 
File                                                   Guid 
Geo Point                                        Telerik.Everlive.Sdk.Core.Model.System.GeoPoint()

1 Answer, 1 is accepted

Sort by
0
Accepted
Anton Dobrev
Telerik team
answered on 20 May 2014, 04:23 PM
Hi Sulu,

If the column is of type "Yes/No" it should be mapped to a boolean property. By using true/false for the values of this field you will fully benefit from the way the database treats this field for comparison purposes.

Please, let us know if you have questions.

Regards,
Anton Dobrev
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
.NET SDK
Asked by
Sulu
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or