Base solution for your next web application
Open Closed

what is different to use IMustHaveOrganizationUnit or Navigation Properties #7721


User avatar
0
j.chow created

what is different in bellow two Scenes


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    The IMustHaveOrganizationUnit defines the OrganizationUnitId property. We don't have to implement it, but it's recommended because it provides standardization. There is also the IMayHaveOrganizationId interface which has a nullable OrganizationUnitId property.

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

  • User Avatar
    0
    j.chow created

    Hi maliming,

    if i use red tools to add a OrganizationUnit's Navigation Properties, that mean is same as use IMustHaveOranizationUnit?

  • User Avatar
    0
    maliming created
    Support Team

    Basically they are the same.