Can you put a breakpoint in CustomDtoMapper to see if the configuration is run?
It will not map the password. Did you try?
Your database is saying otherwise. Can you:
Is the client passing both RcmMemberId and RcmCoordinatorId? Set a breakpoint and check both values.
RcmMemberId defaults to 0, which is not a valid User.Id - set the property type to long? if it's optional.
Try this:
public class MyDbContext : AbpZeroDbContext<Tenant, Role, User, MyDbContext>, IAbpPersistedGrantDbContext
{
public MyDbContext(DbContextOptions<MyDbContext> options)
: base(options)
{
Database.SetCommandTimeout(10); // seconds
}
}
Use IFormFile in .NET Core 2.0.
GetAllIncluding accepts params, so simply use one or more commas:
var children = await _childRepository
.GetAllIncluding(
c => c.Parent,
c => c.AnotherRelationship)
.ToListAsync();
Can you check if replacing input.User.MapTo(user) with ObjectMapper.Map(input.User, user) solves this issue? Mapping configuration is in src/MyCompanyName.AbpZeroTemplate.Application/CustomDtoMapper.cs#L29-L32.
EntityFrameworkCore requires eager-loading:
var children = await _childRepository.GetAllIncluding(c => c.Parent).ToListAsync();