我想在 ServiceStack.Aws 同步我的模型时设置自定义读/写容量。
我有这个模型
[Alias("TABLE-NAME")]
public class Company
{
[AutoIncrement]
public int CompanyId { get; set; }
public int CountryId { get; set; }
public string ShortName { get; set; }
public string DocumentNumber { get; set; }
public string FullName { get; set; }
public string Address { get; set; }
public DateTime CreatedAt { get; set; }
}
并使用此代码创建
var awsDb = new AmazonDynamoDBClient();
var db = new PocoDynamo(awsDb)
.RegisterTable<Company>();
db.InitSchema();
如何设置自定义读/写容量?