Base solution for your next web application
Open Closed

Notification system enhancement #1407


User avatar
0
diego created

Hi all, i'm looking for extending notification system. My idea is to manage multiple notification type (mail, in app, push notifications, bot notification) like actual notification system. I don't want to duplicate/triplicate DB tables and entities then i think the correct approach is to extend the actual tables and classes with the concept of NotificationType or NotificationChannel (It 's always difficult to choose the correct name :lol: )

By this way i can generalize notification management both on DAL layer and Business layer. Obviously the notification dispatch require a specific implementation, one for each notification type.

What do you think about that?

Have a nice day, Diego


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

    Hi,

    You can do it like that, You can take a look at this document for how to extend entities <a class="postlink" href="https://aspnetzero.com/Documents/Extending-Existing-Entities">https://aspnetzero.com/Documents/Extend ... g-Entities</a>.

    Another option would be, you can create entities PushNotification, MailNotification etc and store them on the same table. <a class="postlink" href="http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/implementing-inheritance-with-the-entity-framework-in-an-asp-net-mvc-application">http://www.asp.net/mvc/overview/getting ... pplication</a>

    Which one to choose depends on your need and implementation details.