Open Closed

IMustHaveOrganizationUnit interface in ABP Framework #1976


User avatar
0
bozkan created
  • ABP Framework version: v4.4.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I need to define some entities scoped wih Organization Units. I saw that there was an IMustHaveOrganizationUnit interface in aspnetboilerplate. But I couldn't find any interface similar in ABP. Could you please help about how to implement entities with organization id's?

https://aspnetboilerplate.com/Pages/Documents/Zero/Organization-Units#creating-an-entity-that-belongs-to-an-organization-unit


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    IMustHaveOrganizationUnit interface is a very basic interface and the ASP.NET Boilerplate framework does not implement any logic with this interface. You can see the usages https://github.com/aspnetboilerplate/aspnetboilerplate/search?l=C#&q=IMustHaveOrganizationUnit

    so you can create this interface in your project https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/Organizations/IMustHaveOrganizationUnit.cs

    and write your own logic.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11