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

Activities of "hikalkan"

Use DynamicApiControllerManager.GetAll() static method.

Answer

If you have a DbContext, just simple use context.DisableFilter extension method. See docs: <a class="postlink" href="https://github.com/jcachat/EntityFramework.DynamicFilters">https://github.com/jcachat/EntityFramew ... micFilters</a>

Answer

It's in the roadmap: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/427">https://github.com/aspnetboilerplate/as ... issues/427</a>

NHibernate side is a little out-of-date for module-zero. This is a little normal since I did not documented module-zero and it's work-in-progress. It will be fixed soon. But if you can write missing migrations (based on current state of entities, also maybe running EF migration and see what tables are created) and create mappings, you can contribute to the project source in github.

It's not documented yet. You can check the sample project (<a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/tree/master/sample">https://github.com/aspnetboilerplate/mo ... ter/sample</a>) for simple usage. You can try to Inject and use UserManager to get/change permissions of users. RoleManager to get/change permissions for roles. IPermissionChecker to just simply check permissions for current user. I'm hardly working on the ABP and module-zero. Will document it soon.

Answer

There are three filters defined (as static consts on the AbpDataFilter class):

  • "SoftDelete" for entities implement ISoftDelete
  • "MustHaveTenant" for entities implement IMustHaveTenant
  • "MayHaveTenant" for entities implement IMayHaveTenant

You can inject IUnitOfWorkManager and use IUnitOfWorkManager.Current.DisableFilter(AbpDataFilter.SoftDelete) for example.

I'm working on the system, I'll document it soon.

Hi,

Both of MVC and Web API runs in same application in the sample project. See SimpleTaskSystemWebModule class:

[DependsOn(typeof(SimpleTaskSystemDataModule), typeof(SimpleTaskSystemWebApiModule))]
    public class SimpleTaskSystemWebModule : AbpModule
    {
        ...

It DependsOn SimpleTaskSystemWebApiModule. Thus, ABP loads web API module and it registers Web API services.

You can serve Web API in a different server. Even you can host web API in a Windows Service or Console Application rather than IIS. Since it's easy but a little long and not ABP-related topic, please search web for it.

Hi,

In the second application service (TaskAppService), EventBus defined wrongly. It should be like:

public IEventBus EventBus { get; set; }

NOT like:

public IEventBus EventBus;

If you define it as above, Dependency Injection can not set it, and it remains NullEventBus.Instance.

It's similar to: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/380">https://github.com/aspnetboilerplate/as ... issues/380</a>

Yes, there is a problem about that. I will fix it soon.

Start your GET methods by Get. Example:

GetPhonesOutput GetPhones();

When I implement it, there will be a conventional option for method prefixes:

POST: Save, Update, Insert GET: Get DELETE: Delete, Remove ...

Showing 2151 to 2160 of 2190 entries