Skip to content

Instantly share code, notes, and snippets.

@sacredgeometry
Last active June 17, 2016 15:03
Show Gist options
  • Save sacredgeometry/87f45238ac25983382eedc1d85b0a472 to your computer and use it in GitHub Desktop.
Save sacredgeometry/87f45238ac25983382eedc1d85b0a472 to your computer and use it in GitHub Desktop.
Property resolver specified in the TableRequestOptions not being called
public T CreateTableEntity (T entity) where T : TableEntity
{
CloudTable table = TableClient.GetTableReference(typeof(T).Name);
if(entity != null)
{
TableOperation insertOrReplaceOperation = TableOperation.InsertOrReplace(entity);
table.Execute(insertOrReplaceOperation, new TableRequestOptions {
PropertyResolver = (pk, rk, propName, propValue) =>
{
Console.WriteLine("THIS IS NEVER GETTING HIT!");
return EdmType.String;
}
});
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment