Skip to content
Prev Previous commit
Next Next commit
bugfix
  • Loading branch information
petero-dk committed Oct 17, 2022
commit 0b6fed16f2f62fa2dc5f938e1f49776d5ed58c37
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static class TableEntityDynamic
return TableEntityDynamic.ToEntity<T>(model, (context as StorageContext).GetEntityMapper<T>(), context);
}

public static async TableEntity ToEntity<T>(T model, StorageEntityMapper entityMapper, IStorageContext context) where T : new()
public static TableEntity ToEntity<T>(T model, StorageEntityMapper entityMapper, IStorageContext context) where T : new()
{
var builder = new TableEntityBuilder();

Expand All @@ -49,7 +49,7 @@ internal static class TableEntityDynamic
virtualTypeAttribute.WriteProperty<T>(property, model, builder);
else if (relatedTableAttribute != null && relatedTableAttribute.AutoSave)
// TODO: Implicit save rowkey and partitionkey (will need to get from saved model)
await SaveRelatedTable(context, property.GetValue(model, null), property);
SaveRelatedTable(context, property.GetValue(model, null), property).Wait();
else
builder.AddProperty(property.Name, property.GetValue(model, null));
}
Expand Down