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

Activities of "bilalhaidar"

Hello,

I am still very new to this template and I got overwhelmed seeing all these features.

Is there a user-guide documentation on how to use and configure existing features?

For example, I want to configure an Admin per Host. Then create a new Tenant with its own Admin that can access only that tenant and create users only under that tenant.

Thanks, Bilal

I had to install TypeScript for VS 2015 and things went fine.

The URL for that extension: <a class="postlink" href="https://www.microsoft.com/en-us/download/details.aspx?id=48593">https://www.microsoft.com/en-us/downloa ... x?id=48593</a>

Regards Bilal

Hi,

I just downloaded a project. When I compile the entire solution in VS, I got the error in the Web app:

tsc.exe exited with code 1

any idea?

Thanks

Hi,

I visited this link and it says, not found:

<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases">https://github.com/aspnetzero/aspnet-zero/releases</a>

What is the correct URL for GitHub?

Thanks, Bilal

Thanks for the input :-)

What I meant is that, an Admin would map a user to a tenant. In this case, the DB already has information that user1 belongs to tenant1. Correct?

Maybe I am not understanding well concept of multi-tenants.

Thanks a lot,

Regards

Thanks for your help.

All links are "Page not found" can you find the correct link and send it pls?

Many thanks, Bilal

Answer

So in other words, every action on an entity (changing 1 or more fields) causes UOW to save changes to DB?

So if I have 4 methods on an entity, each method to edit 1 property, I will end up hitting DB 4 times as each method would run and cause UOW to save data to the database?

Thanks, Bilal

Oh that's awesome. So, ASPNET Zero will automatically run my validations at the Application Service level.

I have 2 related questions in here:

1- If I want to return the validation errors to client side, how is that possible given that the template would through exception if inputs are invalid (something similar to ModelState.Errors, etc.)

2- In some requirements I have, I need to validate based on "values" not fields. What I mean is that I have some reference data (ID, Name) to fill some Select elements. Based on a specific value, I will validate other fields. Is this a good pattern to follow or is there a workaround? That reference data could change also (Admin can edit). Is that supported or is that okay to do? I smell something wrong, as data might change and hence my validations might fail!

many thanks,

regards Bilal

Hi, I've seen some code samples based on this template. When inside Application Layer, I don't see any code to check for validation or make use of Validation Data Annotation.

In ASP.NET I would do that in the Controllers before proceeding into checking business logic in the Domain Core.

What's the recommendation when using this template? Where shall I run those validation data annotations especially that I need to notify the client of such validitions.

Thank you, Regards

Question

Hi,

In the case of using Aggregate Roots. I noticed that in the template, with any change in an entity, the data is being saved to the database (UOW).

In the case of Aggregate Roots, once you are adding objects, updating, etc. then you would save changes to the database. (DDD)

How to have the same behavior in a sense not to save to the database at every field change but rather group all changes at once?

To illustrate more, consider Event aggregate root and one of the collections it manages is EventRegistration. So when following DDD guidelines, I would create a new event registration and add it to the collection of event registrations on Event aggregate root. Then, I would save to database by calling Update() or so.

I cannot figure out how to visualize the above when using the boilertemplate. Shall I disable UOW and use it manually? Or is there a better approach?

Thanks

Showing 621 to 630 of 635 entries