public async Task SaveAsync <T>(T poco)
{
var tableInfo = PocoDataFactory.TableInfoForType(poco.GetType());
if (await IsNewAsync(poco).ConfigureAwait(false))
{
await InsertAsync(tableInfo.TableName, tableInfo.PrimaryKey, tableInfo.AutoIncrement, poco).ConfigureAwait(false);
}
else
{
await UpdateAsync(tableInfo.TableName, tableInfo.PrimaryKey, poco, null, null).ConfigureAwait(false);
}
}