Hi, I am trying to use Android platform to test the Project (sample development step by step Mobile (Xamarin)- https://aspnetzero.com/Documents/Develo ... ep-Xamarin), in this regard, when I want to run my sample, After launch Android Emulator(print screen Attached file) when Press F5 in solution, the visual studio messages that Deploy are Failed, although Error List is empty!
How to inject IAsyncQueryableExecuter and do?
hi, i can not change GetProvinces(same as getpeople method in step by step developing) to async!
when i changing "private readonly IRepository<Province.Province> _provinceRepository" to "private readonly IRepository<Province> _provinceRepository" i have error in build
and when changing "private readonly IRepository<Province> _provinceRepository" to "private readonly IRepository<Province.Province> _provinceRepository"
GetProvinces method have error!
--
public interface IProvinceAppService : IApplicationService { Task <ListResultDto<ProvinceListDto>> GetProvinces(GetProvincesInput input); Task CreateProvince(CreateProvinceInput input); Task DeleteProvince(EntityDto input); }
namespace SSoft.ResourceAssessmentsNetwork.BasicInfo.Provinces { [AbpAuthorize(AppPermissions.Pages_BasicInfo_Province)] public class ProvinceAppService : ResourceAssessmentsNetworkAppServiceBase, IProvinceAppService {
private readonly IRepository<Province.Province> _provinceRepository;
public ProvinceAppService(IRepository<Province.Province> provinceRepository)
{
_provinceRepository = provinceRepository;
}
[AbpAuthorize(AppPermissions.Pages_BasicInfo_Province_CreateProvince)]
public async Task CreateProvince(CreateProvinceInput input)
{
var province = ObjectMapper.Map<Province.Province>(input);
await _provinceRepository.InsertAsync(province);
}
[AbpAuthorize(AppPermissions.Pages_BasicInfo_Province_DeleteProvince)]
public async Task DeleteProvince(EntityDto input)
{
await _provinceRepository.DeleteAsync(input.Id);
}
public async Task<ListResultDto<ProvinceListDto>> GetProvinces(GetProvincesInput input)
{
var provinces = await _provinceRepository
.GetAll()
.WhereIf(
!input.Filter.IsNullOrEmpty(),
p => p.Name.Contains(input.Filter)
)
.OrderBy(p => p.Name)
.ToList();
return new ListResultDto<ProvinceListDto>(provinces.MapTo<List<ProvinceListDto>>());
}
}
It's Solved.
no problem don't solve!
hi, my project type isASP.NET Core & Angular (V5.0.4)
Add-Migration "Added_Provinces_Table"
System.Exception: Could not find content root folder!
at SSoft.ResourceAssessmentsNetwork.Web.WebContentDirectoryFinder.CalculateContentRootFolder()
at SSoft.ResourceAssessmentsNetwork.EntityFrameworkCore.ResourceAssessmentsNetworkDbContextFactory.CreateDbContext(String[] args)
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContextFromFactory(Type factory)
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.<>c__DisplayClass14_0.<FindContextFactory>b__1()
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func1 factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType) at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_1.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0
1.<Execute>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Could not find content root folder!
no, How do i do it؟