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

Activities of "martin hascak"

I have an Idea to create custom Blog module using module system of ABP. What I want form my module is custom services and DB entities for creating Articles, Categories, etc. So I created an now solution and followed the instructions on modules documentation page. My folder structure look like this IMG:

And I have some questions.. Is possible use custom dbContext from module and make it works with EF migrations ? Is registration logic of DependsOn module currect ? Is posible register module custom menus to menu provider ? Is this approach good or not. ?

What if the module need custom rotes,views...?

[DependsOn(typeof(CmsCoreModule), typeof(CmsApplicationModule))]
    public class BlogApplicationModule : AbpModule
    {
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
        }
    }

I know that this is more complex question, but i don´t have complete picture how use ABP module system yet. I don´t need the solution, I only want ideas and approaches how to correctly create some module like Blog of complex CMS system.

BIG Thanks for ideas !

Hello, thanks for your awsome framework. I have one question about how to use services and DTO in controllers / Views. I have service named ProjectAppService for CRUD operation (select, insert, update, delete). I want to create controllers actions for this services.

Soo sample: ProjectController for Edit

public ActionResult  Edit(int id)
        {
            **UpdateProjectOutput** project = _projectAppService.FindProjectById(id);

            if (project == null)
            {
                return HttpNotFound();
            }
            return View(project);
        }
}


        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Detail(**[b]UpdateProjectInput** project)
        {
            if (ModelState.IsValid)
            {
                _projectAppService.UpdateProject(project);
                return RedirectToAction("Index");
            }

            return View(project);
        }

Because method FindProjectById retrun UpdateProjectOutput type I must use it in razor Viev like this:

@model InfSample.Projects.Dtos.UpdateProjectOutput

But in edit method i need to use UpdateProjectInput ?

What DTO I must use in the view of Product Detail ? Input / output ?

I´m little confused with this approach, how can I do this think correctly, thanks for help !

Showing 1 to 2 of 2 entries