Base solution for your next web application

Activities of "sergiop"

You are correct !!! Thank you !!! , I got million of stuff in my head forgot the simple things !!! Some validation errors, an offending column, foreign key that is marked as .WillCascadeOnDelete(false) on the context should not cause any issue but it does, should not use other Key than ID on the related table but it is what I need, since the table will be updated manually time to time an there is no way to use the ID field. Thank you

Hello Im having a problem with this line on the ProductsAppService.

await _plannerRepository.DeleteAsync(result.Id);

It does not perform the softdelete, the integer result.Id is fine. but nothing happens, no errors. The same line is working fine with the rest of the entities. Any idea about how to debug this? The class that updates the modified date/modifier user and isdeleted flag for example? Thank you.

Hello I'm using some fields on the modals that needs to be validated before going to the appservice, after the click on the modal, then the JS associated with the modal is in charge to send the data to the appservice.

But I have a dynamic need for validation, for example for a user1 the field TEXT1 is mandatory and 4 chars length, for another user the validation for TEXT1 should be optional and 10 characters length for example.

On server side: I do not think that injecting a repository containing the configuration validations rules form the database, and then creating a dynamic custom validation at DTO level is something recommended.?

found this, seems to be the same scenario I have. #2583@20821281-340d-4c97-a56d-a284ecae926f.

Yes I was thinking to leave the DTO the higher level DB validation. And then add some logic inside the Application Service class and throw an User friendly error message regarding the validations rules specific for each user.

But I dot like that approach I would like to have she same rules and mark the fields with problems on the form, instead showing an user friendly error message coming from the AppService Class.

I think I will have to duplicate that validation rules coming from DB, as well at client level using JQuery at Modal Form level...

Do you have any recommendation?

Hello I was reading the OU information and samples, they are mostly, to know how to create entities that can belong to OUs.

But my question is when adding OU (only need root so far), I need to use OU and map it to Countries, having Country name and ISO country Code ("China", and "CN" for example.) The OU description (name) should come from a table, we will not allow the user to enter the string they want.

I've created the Country table then I was thinking to modify the "Add OU" feature just to let me take those values from the countries table. But before proceeding with that I would like to ask, if maybe Is there any built in way to map the Country Table to OU at root level?

Thank you very much !

Answer

Excellent thank you !!!

Question

Hello I was planning to use LDAP. I have no tried yet, but I need to know something In advance.

Once it is enabled, the application will allow the used to login the application using the same Username and password he is using in window for an specific domain.

But at the same time will the roles defined in the ASP.NET Zero application continue working for that users? Or I need to create some map from Active directory user names to the local users table?

Thank you very much !!

Answer

Thank you I was using that official help and <a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_1/components_date_time_pickers.html">http://keenthemes.com/preview/metronic/ ... ckers.html</a>

Solved, My mistake referencing the wrong files.

Thanks a lot for your help

Question

Hello I'm trying to use the Metronics datepicker, copied the css js and referenced them to the page, then initialize the datepicked as on the sample. I'm always getting something like this, do you have any idea? Thank you.

It helped, thank you very much !!!!

HEllo This following line rise the user friendly error as attached var xxx = outputxxx.MapTo<EntityXXX>();

IN WEB CONFIG

&lt;customErrors mode=&quot;RemoteOnly&quot;&gt;

  &lt;error statusCode=&quot;404&quot; redirect=&quot;~/Error/E404&quot; /&gt;
&lt;/customErrors&gt;

</system.web> <runtime>

Pleas could you le me know where to disable it to let me troubleshoot it. Thank you very much.

Showing 11 to 20 of 27 entries