Base solution for your next web application

Activities of "[email protected]"

<cite>aaron: </cite> Duplicate of #3962@b1758ffc-c5d6-4949-bfc8-a9bc10b108f6

This is misleading answer. I should not change the code in order to make it work.

The very basic code I've tested worked perfectly!

SmtpClient client = new SmtpClient("smtp.office365.com", 587);
client.UseDefaultCredentials = false;
client.Credentials = new NetworkCredential("[mail]", [password]");
client.EnableSsl = true;
MailMessage mailMessage = new MailMessage();
mailMessage.From = new MailAddress("[mail]");
mailMessage.To.Add("[email protected]");
mailMessage.Body = "body";
mailMessage.Subject = "subject";
client.Send(mailMessage);

Should I replace your code with this to make it work!

When I insert a record with sub entity using the EF repository, I am getting the correct ID back in the parent record but negative ID for the child records!

I read about it online, they [https://stackoverflow.com/questions/5212751/how-can-i-get-id-of-inserted-entity-in-entity-framework]) I should call Save context in order to get the ID, and there's no such an option in the repository.

Any idea?

What is the best approach to create a dynamic menu under the dashboard and administration link?

Becausee the menu is created based on static array.

Hi,

I want to add supporting for MongoDB as a data repository. How would you recommend the code structure should be?

I already created a new assembly and added a MongoDB repository, and added the generic repository to Application.Shared library. Is what I've done correct? How to register this module?

Thanks, working!

How can I add a new Service implementation in a new assembly?

I have added the interface in the ProjectName.Application.Shared library, and I added the service imlementation to the new assembly.

How the references should be? and how asp.net zero will create a new controller automatically? What's the required dependecy injection actions to make all the services in the new assembly exposed automatically as controller.

When multi-tenancy is enabled, should I add IMustHaveTenant / TenantId in the parent and child resource?

For example, Category / Product case. Category has a TenantId, and Product is a child entity of a Category and cannot be alone.

Should I make the entity Product inhirets from IMustHaveTenant as well? or no need?

And if not, should I check in the service code whether the user has access to the sub resource everytime?

Hi,

I am new to ASP.Net Zero. I have downloaded the source code for ASP.Net Core + Angular 4.0, and added it to my source control TFS. Few days later, I got an email about a new release published and a newer one will be published soon (5.0), which I am interested in.

The question is, how to link my project to let my project get the latest versions smoothly? Knowing that we have those two challenges: The project I downloaded has a different projects / files names on your GitHub My project is using TFS source code, and not sure how it can work with GitHub as well

Showing 1 to 8 of 8 entries