Hey

Everytime I create test storage tables it only creates the timestamp, partitionkey and rowkey column and leaves all of my fields out. I even check directly in SQL Server where the test tables are.

Anyone know what the problem is?
____________________________________________________________

____________________________________________________________

public class MediaServiceContext : TableStorageDataServiceContext
{
public MediaServiceContext() :
base(StorageAccountInfo.GetDefaultTableStorageAccountFromConfiguration())
{
}

public DataServiceQuery[ImageItem] Images
{
get
{
return CreateQuery[ImageItem]("Images");
}
}

(>< signs replaces with [ ])

Views: 6

Reply to This

Replies to This Discussion

I would look at the StorageClient sample in the Windows Azure SDK and compare what you are doing to that code.
Just did that, found out that I forgot to put accessor methods in my class.
Apparently they are needed by the storage client.
eg. public string ImageID { get; set; }

Thanx, Problem sorted out

RSS

Latest Activity

Profile IconKevin Rolnick, Tony Williams, Mark Sullivan and 48 more joined Azure User Groups
Sep 21, 2018

© 2019   Created by Azure Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service