I have an Azure Table Storage with the following Entity:
SampleEntity : TableEntity
{
public int EmployeeId{get; set;}
}
And I have inserted 100 records to the table. Now I have a change in requirement that the EmployeeID should be string. Also I should not delete the existing 100 records that were inserted. Hence I changed the existing SampleEntity as follows:
SampleEntity : TableEntity
{
public string EmployeeId{get; set;}
}
And I have inserted 50 Rows into the table with EmployeeId as string.
Now when I do a GetOperation on the table with new SampleEntity(with string EmployeeID), I am getting 150 rows, but the values of EmployeeID for the first 100 rows inserted using the Old SampleEntity was 0.
On the other hand if I switch to old SampleEntity and do a GetOperaiton, I get null values for EmployeeID for the 50 rows inserted using new SampleEntity.
How can I use the new Sample Entity toget all 150 rows with values for EmployeeId in Strings?
integer
EmployeeId tostring
EmployeeId (without deleting them of course) or do you want to preserve the data types? – Gaurav Mantri