Base solution for your next web application

Activities of "sdelot"

Hi, I solved it...thanks

Hi, I send the project to <a href="mailto:[email protected]">[email protected]</a>.

thank you

Thanks, I send to your email !!

Yes i did

public class LICIELWebDbContext : AbpZeroDbContext<Tenant, Role, User> { /* Define an IDbSet for each entity of the application */

    public virtual IDbSet&lt;BinaryObject&gt; BinaryObjects { get; set; }

    public virtual IDbSet&lt;Friendship&gt; Friendships { get; set; }

    public virtual IDbSet&lt;ChatMessage&gt; ChatMessages { get; set; }

    public virtual IDbSet&lt;JobsTable&gt; JobsTables { get; set; }

    public LICIELWebDbContext()
        : base("Default")
    {
        
    }

I tried to send the project, but it is larger than i can send!! how can i?

Interface .............. namespace LICIEL.LICIELWeb.Jobs { public interface IJobAppService : IApplicationService { ListResultDto<JobListDto> GetJob(GetJobInput input); } }

Dto ..................... namespace LICIEL.LICIELWeb.Jobs.Dto { public class GetJobInput { public string Filter { get; set; } } } ................................................ namespace LICIEL.LICIELWeb.Jobs.Dto { [AutoMapFrom(typeof(JobsTable))]

public class JobListDto : FullAuditedEntityDto
{

    public virtual string Name { get; set; }


    public virtual string Dept { get; set; }


    public virtual string Desc { get; set; }

}

}

Appservicees ...................................................

namespace LICIEL.LICIELWeb.Jobs { public class JobAppService : LICIELWebAppServiceBase, IJobAppService { private readonly IRepository<JobsTable> _JobRepository;

    public JobAppService(IRepository&lt;JobsTable&gt; JobRepository)
    {
        _JobRepository = JobRepository;
    }


    public ListResultDto&lt;JobListDto&gt; GetJob(GetJobInput input)
    {
        var Jobs = _JobRepository
            .GetAll()
            .WhereIf(
            !input.Filter.IsNullOrEmpty(),
            p => p.Name.Contains(input.Filter) ||
                    p.Dept.Contains(input.Filter) ||
                    p.Desc.Contains(input.Filter)
            )
            .OrderBy(p => p.Name)

            .ToList();

        return new ListResultDto&lt;JobListDto&gt;(Jobs.MapTo&lt;List&lt;JobListDto&gt;>());


        //throw new NotImplementedException();
    }

}

}

I can't do nothing in your project... i done the test... it was failed.

do you guys have any idea about it?

do you have any idea? i am waiting for the solution...

Yes, i created one IjobAppService Listed as below

namespace LICIEL.LICIELWeb.Jobs { public interface IjobAppService : IApplicationService { ListResultDto<JobListDto> GetJob(GetJobInput input);

}

}

Showing 1 to 7 of 7 entries