filipw / ScriptCs.AzureMobileServices

MIT License
2 stars 1 forks source link

DateTime field in type becomes a string field in database #3

Open svdoever opened 11 years ago

svdoever commented 11 years ago

I want to create the fields in a table on the fly so I do:

public class MyClass { public int? id { get; set; } public DateTime timestamp { get; set; } }

var myTable = zumo.GetTable(mobileServiceHost, mobileServiceAppKey, myTableName); var newVote = voteTable.Add(new MyClass { timestamp = DateTime.Now });

My timestamp field becomes a string field in the database.