Could you please suggest some good code review tools which can be integrated with Visual Studio 2017 for both C# and Angular ABP projects.
<cite>ManojReddy: </cite> I am making an update API Call, but its updating CreationTime and CreatorUserId columns even If I'm not passing these values.
{ "testCode": "string", "testName": "string", "testDesc": "string", "id": 1 }
public async Task UpdateTest(TestDetailsDTO input) { var classobj = ObjectMapper.Map<Test>(input); await UpdateAsync(classobj); }
public class TaxJurisdictionDetailsDTO : FullAuditedEntityDto { public string CodeCode { get; set; } public string CodeName { get; set; } public string CodeDesc { get; set; } }
Parameter input gets CreationTime in UpdateTest service method.
Following code is not working, Its updating CreationTime, CreatorUserId.
var classobj = _someService.GetEntity(input.id);
ObjectMapper.Map(input, classobj );
What are pros and cons of attaching the entity to dbContext?
Thanks, Could you please provide sample declaration for repositorybase or custom repository.
Thanks for your response.
But in this case it will make extra DB call by calling GetEntity method. Don't we have any alternative approach?
I am making an update API Call, but its updating CreationTime and CreatorUserId columns even If I'm not passing these values.
{
"testCode": "string",
"testName": "string",
"testDesc": "string",
"id": 1
}
public async Task UpdateTest(TestDetailsDTO input)
{
var classobj = ObjectMapper.Map<Test>(input);
await UpdateAsync(classobj);
}
public class TaxJurisdictionDetailsDTO : FullAuditedEntityDto
{
public string JurisdictionCode { get; set; }
public string JurisdictionName { get; set; }
public string JurisdictionDesc { get; set; }
}
Parameter input gets CreationTime in UpdateTest service method.
Thanks for your response.
Could you please give an example of "Instead of an app service, you can create a domain service class and use it in your application's startup, maybe in your web module", So that It would be more clear.
Thanks for your response.
Link appsettings.json is giving 404. [https://github.com/aspnetzero/aspnet-zero-core/blob/67b8cdd1542e2cdfef982b08a886df2f6c7c1e56/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L13])