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

Entity belonging to multiple OrganizationUnits #5216


User avatar
0
BobIngham created

Did I see a discussion somewhere here or in github (I have searched both) with regard to entities belonging to multiple OrganizationUnits? If so, could someone point me to it? Given the interfaces IMayHaveOrganizationUnit/IMustHaveOrganizationUnit how does one go about implementing such a pattern? Are there any guidelines anywhere?


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

    I don't think you can do it with the out of box AspNet Boilerplate because the IMayHaveOrganizationUnit has

    long? OrganizationUnitId
    

    .

    you have to create many-to-many relationship and change filtering.

  • User Avatar
    0
    BobIngham created

    @alper, yeah, I kind of thought that would be the case. I will think on it for a while. Nice entry in the wiki for AbpSession by the way. keep it up. Volosoft should really implement a Medium account for us to submit things like this to.

  • User Avatar
    0
    alper created
    Support Team

    there's a Medium account by the way <a class="postlink" href="https://medium.com/volosoft">https://medium.com/volosoft</a>

  • User Avatar
    0
    BobIngham created

    @alper, nice, thanks. Why don't you guys invite your user base to write articles under a guest account that you could create for £5 per month? That way we could submit articles of interest for the Zero user base and share code and you guys could edit and manage publishing. For example I am about to cut into code for audit logs, system logs and entity history and override standard services replacing them with new services which will persist entries to Mongodb using an Azure Cosmodb wrapper service. I would gladly share my work especially if I knew my article would be reviewed by you guys, the experts. This would have the added advantage of you reviewing my code and suggesting changes where appropriate. I am not a great programmer and sometime find Zero frustrating to work with simply because it is an advanced body of work using concepts and patterns which are way beyond my limited capabilities. Just a thought, let me know if I can help.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @BobIngham we will add such articles to our documentation which is alraedy open to public <a class="postlink" href="https://github.com/aspnetzero/documents">https://github.com/aspnetzero/documents</a>.

  • User Avatar
    0
    BobIngham created

    @ismcagdas, understood, I will fork and send you a request as and when. Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @BobIngham Thanks :)