I use Azure table storage as my data stream for my semantic log application block. When I call the log, which should be written by my user EventSource, I get columns similar to ff .:
- Eventid
- Payload_username
- Opcode
I can get these columns by creating a class TableEntitythat exactly matches the column names (except EventIdfor some reason):
public class ReportLogEntity : TableEntity
{
public string EventId { get; set; }
public string Payload_username { get; set; }
public string Opcode { get; set; }
}
However, I would like to save the data in these columns in properties with different names in mine TableEntity:
public class ReportLogEntity : TableEntity
{
public string Id { get; set; }
public string Username { get; set; }
public string Operation { get; set; }
}
Is there an attribute / attribute that I can use to allow me to have a column name different from the property name TableEntity?