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

Azure and Plural Table Names

2 Answers 56 Views
CloudDataSync
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Matthew
Top achievements
Rank 1
Matthew asked on 29 Jan 2014, 06:50 PM
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 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 30 Jan 2014, 08:12 AM
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.
0
Matthew
Top achievements
Rank 1
answered on 30 Jan 2014, 03:54 PM
Ha! Sometimes the most obvious answer is the one you ignore. I'll try this out shortly. Thanks Deyan!
Tags
CloudDataSync
Asked by
Matthew
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Matthew
Top achievements
Rank 1
Share this question
or