Azure and Plural Table Names

3 posts, 0 answers
  1. Matthew
    Matthew avatar
    32 posts
    Member since:
    Oct 2011

    Posted 29 Jan 2014 Link to this post

    Here's the stub for my class as an example:

    public class Color : AzureSynchronizableCloudItem { }

    But in my azure mobile db the actual table name is 'Colors' and when I sync I get an exception complaining about a missing 'Color' table. I'm positive you guys have an attribute or a setting somewhere that allows us to specify/change the name of a cloud item's corresponding table. I've looked through Telerik's assemblies and have turned up short for an answer, the same with the documentation. 

    Where might I find it? Thanks ahead of time!
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 30 Jan 2014 Link to this post

    Hi Matthew,

    Thanks for writing.

    You should actually be using the DataTable attribute that comes with the Azure Mobile Services SDK:

    [DataTable("Colors")]
    public class Color : AzureSynchronizableDataItem

    I hope this helps.

    Regards,
    Deyan
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
  3. DevCraft banner
  4. Matthew
    Matthew avatar
    32 posts
    Member since:
    Oct 2011

    Posted 30 Jan 2014 Link to this post

    Ha! Sometimes the most obvious answer is the one you ignore. I'll try this out shortly. Thanks Deyan!
Back to Top