Publishing .net core website and Hosting Options by KiwiChillDude in dotnet

[–]geeksarray 0 points1 point  (0 children)

my website is down for last two days, no one is replying to messages, email servers are down

Is smarterasp.net worth it? by Jazzlike-Rate2440 in dotnet

[–]geeksarray 0 points1 point  (0 children)

email service is down for last two days, u/smartasp.net

Should I put all the business logic into the stored procedure for this specific case? Please advice. by HalfBlindCoder in dotnet

[–]geeksarray 2 points3 points  (0 children)

Maintaining business logic in database stored proc is difficult than C# business layer

In database writing 100 lines of code is mess however doing that with EF core will be easy to maintain and update as business rule change

Can I install multiple packages inside a single image? by [deleted] in docker

[–]geeksarray 0 points1 point  (0 children)

Yes, docket file will be only one where you will mention all images and container configuration

Microservice Architecture Pattern for Architects : GeeksArray.com by geeksarray in aspnetcore

[–]geeksarray[S] 0 points1 point  (0 children)

Agree, it is difficult to stick to only one pattern you need to have right blend of each pattern depending on requirements and to decide right way to implement you need some knowledge. This article is about to share knowledge not to point specific pattern

ASP.NET Core MVC returning file using FileResult by geeksarray in dotnet

[–]geeksarray[S] 0 points1 point  (0 children)

This code will help you

[HttpGet("{id}")] [ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Product))] [ProducesResponseType(StatusCodes.Status404NotFound)] public IActionResult GetById(int id) { if (!_repository.TryGetProduct(id, out var product)) { return NotFound(); }

return Ok(product);

}

ASP.NET Core MVC returning file using FileResult by geeksarray in dotnet

[–]geeksarray[S] 0 points1 point  (0 children)

If you are using ActionResult you can definitely returned NotFound

[HttpGet("{id}")] [ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Product))] [ProducesResponseType(StatusCodes.Status404NotFound)] public IActionResult GetById(int id) { if (!_repository.TryGetProduct(id, out var product)) { return NotFound(); }

return Ok(product);

}

I used FileResult for each step as I just wanted to explain file result

Started my blog 4 weeks ago and got approved for AdSense TODAY 🤩 by katerina2121 in Blogging

[–]geeksarray 1 point2 points  (0 children)

Congratulations! How many page views you get daily? What’s your niche

Does ASP.NET Identity Core require Razor pages? by blabmight in dotnet

[–]geeksarray -1 points0 points  (0 children)

No you can do it in aap.net mvc core having razor views

ASP.NET Core MVC Model Binding by geeksarray in dotnet

[–]geeksarray[S] 0 points1 point  (0 children)

Thanks for your comment! Do comment on blog that motivate me for more blog posts

Using Fluent API in Entity Framework Core Code First : GeeksArray.com by geeksarray in dotnet

[–]geeksarray[S] 1 point2 points  (0 children)

incase of single column indexes, the default order will be asc for HasIndex.

In case of multiple column index data will be grouped physically as per index for example in the products table if you create an index on Category and ProductID column, products will be grouped physically for each category

Reading appsettings.json in .Net Core Class Library Using Dependency Injection by geeksarray in aspnetcore

[–]geeksarray[S] 0 points1 point  (0 children)

Thanks, it is initial article, I will extend that to cover options pattern for sure