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

2 posts, 1 answers
  1. Sulu
    Sulu avatar
    34 posts
    Member since:
    Aug 2013

    Posted 20 May 2014 Link to this post

    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()
  2. Answer
    Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 20 May 2014 Link to this post

    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.
     
Back to Top