[DynamoDBTable("YourTable")]
public class User : Entity
{
[DynamoDBProperty("Name")]
public string Name { get; set; }
}
services
.AddDynamodbMapper(configuration, environment)
.AddRepositories(typeof(User))
Return all Users and yours SubEntities.
var users = await _repository.GetAll();
ou
var users = await _repository
.CreateQuery()
.ByGsi("GSI-InheritedType", "InheritedType", "User")
.QueryAsync();
Return User and yours SubEntities.
var users = await _repository.FindById("123456");
ou
var users = await _repository
.CreateQuery()
.ById("123456")
.ByEntityType(DynamoDbOperator.BeginsWith)
.QueryAsync();