Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "maikeloh"

Question

I try to use this library to generate pdf but will like to know best aproach to correctly get access to System.Web.Mvc.ControllerContext required to call GeneratePdf method. I need to generate pdf from AppService or inside a DomainService.

thanks in advantage

Question

i need to execute a job every day at specific time, in some post i find that best solution is use hangfire because it allows complex schedule functions, i integrated hangfire with sql server successfully but i dont find how register Hangfire recurrent job calling the original api of hangfire, about this let me be more specific i found how to register using a controller, but i dont want have to call a controller to make the job registration.. i prefer do the registration of the worker like a normal worker (if its possible) or some other way that register the job at app initialization. any ideas?? thanks a lot in advantage

I am trying to implement optimistic concurrency in my aplication service following the guidelines of this feature in entity framework, but i can't make this work, can any provide one example of optimistic concurrency with entity framework and abp. thanks a lot

I am working on a project where we use Organization Unit to manage Countrys and States, these are my Entities, i need some idea to be able to get a full list of Country with its States or a list or States each one of them with the correct parent Country. The main problem here is i dont have a direct relation between Country and State Entities. Thanks in advantage.

[Table("Country")] public class Country : FullAuditedEntity<long>, IMustHaveTenant, IMustHaveOrganizationUnit { public int TenantId { get; set; }

public virtual string Name { get; protected set; }    

}

[Table("State")] public class State : FullAuditedEntity<long>, IMustHaveTenant, IMustHaveOrganizationUnit { public int TenantId { get; set; }

public virtual string Name { get; protected set; }

}

I am not able to find the correct way to translate the string of the ValidationResult on this DTO with ICustomValidate. This is a simple DTO i have more complex validation rules on others DTO, the question is how translate the message here. Any help? Thanks a lot in advantage.

public class TestDto : EntityDto<long>, IInputDto, ICustomValidate {

    public virtual long IdNumber{ get; set; }

    
    public virtual string Description { get; set; }

    public int TenantId { get; set; }

    public void AddValidationErrors(List&lt;ValidationResult&gt; results)
    {
        if (IdNumber.ToString().Length != 16)
        {
            results.Add(new ValidationResult("The IdNumber must have 16 chars of length"));
        }
    }
}
Showing 1 to 5 of 5 entries