Last active
June 17, 2016 15:03
-
-
Save sacredgeometry/87f45238ac25983382eedc1d85b0a472 to your computer and use it in GitHub Desktop.
Property resolver specified in the TableRequestOptions not being called
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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