Base solution for your next web application

Activities of "affern"

Question

When I run the api host it goes to <a class="postlink" href="http://localhost:22742/">http://localhost:22742/</a> and showing a blank page. If I manually goes to <a class="postlink" href="http://localhost:22742/swagger/ui/index.html">http://localhost:22742/swagger/ui/index.html</a> the page looks like the picture in the attachment. What can be wrong? I have followed the steps in the setup document (<a class="postlink" href="https://www.aspnetzero.com/Documents/Getting-Started-Angular">https://www.aspnetzero.com/Documents/Ge ... ed-Angular</a>) I have never used Swagger before. Do I need to install something to get the Swagger page to show as in the doc?

Answer

Must have been something wrong with the package. When I downloaded a new package without merged Angular UI and selected Core instead of 4.6.1, it works fine.

Answer

Ok, thanks!

I have one more question. I have downloaded the .NetCore 1.1 framework, so my project don't have SignalR. I will need a solution for push-messages for mobil devices, but maybe not before 7-8 months. Do you recommend to download the.Net Framework 4.6.1 version instead, or do you think I can wait for upgrade version in the future?

Best regards, Jan

I also would appreciate an "best practice" example of update an entity :-)

Hello. I think this framework is nice, but I really miss an Angular public front/home page in the solution that use same header as the app solution. I have read the post where you suggest to create a public site from a copy of the account app, but I'm not able to insert the Header component. Is there anyone here who has done this before or who can tell me how I do this?

Thank you for answer. Yes, this is what I want. I will try this :)

<cite>godrunner: </cite> I must be missing something. I am confused. There is an Angular version of the public website? I have not seen that....

No, there is not. I wish it was. That's why I have started to create one myself.

Hello

Are these editors still recommended for use?

  • CKEditor
  • TinyMCE
  • Kendo ui text editor

Or does anyone have a better suggestion?

I tried to install Summernote but I did'nt get it to work. I can see that Metronic use this: <a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_1/components_editors.html">http://keenthemes.com/preview/metronic/ ... itors.html</a>

Hello.

I have a problem with duplicate values get inserted in sub entities when I update main entity because I don't use composite keys. Let say you have an Order class with many-to-many relationship to OrderItems:

public class Order : FullAuditedEntity<long> { public virtual ICollection<OrderItem> OrderItems { get; set; } }

How do I design the OrderItem class?

When I do this: public class OptionItem : FullAuditedEntity<long> {
public long OrderId { get; set; }
public string ItemText { get; set; } public int ItemValue { get; set; } }

then Entity Framework insert the same OptionItems in db everytime Order is updated. I wonder what is best practice in Asp.Net Zero framework to manage this? Shoud I use composite keys in the OptionItem class or should I handle this in a different way? I think it would be easy to have composite keys because then I can delete all items with OrderId before I update Order again. But I can't figure out how I implement this in Asp.Net Zero.

public async Task UpdateOrder(OrderInput input) { if (input.Id > 0) {
input.Status = OrderHelper.SetOrderStatus(input); var order = ObjectMapper.Map<Order>(input); order.CreatorUserId = AbpSession.UserId.Value; await _orderRepository.UpdateAsync(order); } }

Showing 1 to 10 of 98 entries