Base solution for your next web application

Activities of "yais1021"

<cite>alirizaadiyahsi: </cite> Hi,

Which version of Visual Studio are you using?

visual studio 2015 community edition.

I attempted to download the source for the Zero Moudle but VS is failing to load the projects. Are there changes that I need to make to the .csproj files?

Thanks

Thank you for your response.

We have a scenario that is essential for our application to ensure SOLID architecture in our project. Our application will include the following:

1- multiple tenants 2- Multiple set of features and sub-features

We need to create plans/editions, based on each edition, a set of features will be assigned.

Business rules:

  • Tenant can subscribe to multiple plans
  • The application provides 3 Services, each service will have 2 or more plan.

Example: an Application will provide three services, Sell Computers, Sell Tablets, Sell Phones for sale

Sell Computers 1- Silver Plan (feature: Sell maximum of 5 computers at a time) 2- Gold Plan (feature: Sell maximum of 10 computers at a time)

Sell Tablets

  1. Bronze Plan (Feature: Sell Maximum of 5 Tablets at a time)
  2. Silver Plan (Features: Sell Maximum of 10 Tablets at a time)
  3. Gold Plan ( Sell Maximum of 15 Tablets at a time)

Sell Phones 1.Free Plan (Feature: Sell Maximum of 1 phone at a time) 2. Bronze Plan (Feature: Sell Maximum of 5 phones at a time) 3. Silver Plan (Features: Sell Maximum of 10 phones at a time) 4. Gold Plan ( Sell Maximum of 15 phones at a time)

We need to be able to create all these plans through editions and set the features to each edition. A tenant can subscribe to zero or one plan in each service.

With the current setup, I would have to create 24 editions.

  1. Sell Computers Silver Plan features + Sell Tablets Bronze Plan Features + Sell Phones Free Plan Features

  2. Sell Computers Silver Plan features + Sell Tablets Bronze Plan Features + Sell Phones Bronze Plan Features

  3. Sell Computers Silver Plan features + Sell Tablets Bronze Plan Features + Sell Phones Silver Plan Features

  4. Sell Computers Silver Plan features + Sell Tablets Bronze Plan Features + Sell Phones Gold Plan Features

  5. Sell Computers Silver Plan features + Sell Tablets Silver Plan Features + Sell Phones Free Plan Features

  6. Sell Computers Silver Plan features + Sell Tablets Silver Plan Features + Sell Phones Bronze Plan Features

  7. Sell Computers Silver Plan features + Sell Tablets Silver Plan Features + Sell Phones Silver Plan Features

  8. Sell Computers Silver Plan features + Sell Tablets Silver Plan Features + Sell Phones Gold Plan Features

  9. Sell Computers Silver Plan features + Sell Tablets Gold Plan Features + Sell Phones Free Plan Features

  10. Sell Computers Silver Plan features + Sell Tablets Gold Plan Features + Sell Phones Bronze Plan Features

  11. Sell Computers Silver Plan features + Sell Tablets Gold Plan Features + Sell Phones Silver Plan Features

  12. Sell Computers Silver Plan features + Sell Tablets Gold Plan Features + Sell Phones Gold Plan Features . . . . . 24 - Sell Computers Gold Plan features + Sell Tablets Gold Plan Features + Sell Phones Bronze Plan Features

to cover this scenario with the current setup, you can imagine the maintenance it would take if we add a new features to one plan, we would have to go manually through all plans that should include that new feature or perhaps remove a feature from a plan.

The way that I thought to implement this is to assign multiple editions to a tenant and have another table which would include the Tenant/Edition relationship where the tenant retrieves an ICollection<TenantEdition> Editions

Thanks

Showing 1 to 3 of 3 entries