Yahoo Web Search

Search results

  1. Feb 28, 2022 · Technical writings about ASP.NET, Entity Framework, SQL Server, IoT, Visual Studio, SharePoint, Windows and software development in general.

  2. Jan 10, 2020 · Embedding Power BI reports to ASP.NET Core applications using IFrame or JavaScript and server-side code in C#. Samples with code included.

  3. Jul 8, 2013 · Visual Studio 2013 Preview introduces new scaffolding engine with code-name “Artery” for ASP.NET projects. The new engine allows to gather together all general and project specific scaffoldings and it seems to me like Artery will be the framework that gathers under same roof all scaffolding support in future.

  4. Sep 5, 2019 · NHibernate works with ASP.NET Core too. This blog post shows how to use NHibernate in ASP.NET Core MVC applications. I was pleasantly suprised seeing that NHibernate is now on .NET Standard and it doesn’t come with any secret dependencies to full .NET Framework or some Windows-only library.

  5. Apr 12, 2019 · April 12, 2019 Gunnar Peipman 3 Comments. Writing integration tests for ASP.NET Core controller actions used for file uploads is not a rare need. It is fully supported by ASP.NET Core integration tests system. This post shows how to write integration tests for single and multiple file uploads.

    • Making Rotativa.Aspnetcore Work on Windows
    • Invoice Models
    • Building Invoice View
    • Creating Pdf Invoice
    • Wrapping Up

    There are two additional files that doesn’t come with NuGet package – wkhtmltoimage.exe and wkhtmltopdf.exe. By default it is expected that these files are located in folder wwwroot/Rotativa. As I don’t like the idea of having executables somewhere where direct requests can be done I moved the files to Rotativa folder in project root. You can find ...

    To make my proof-of-concept code more realistic I decided to go with simple invoice. Here are models for Invoice and InvoiceLine. Notice that Invoice class has static method GetOne() that created demo invoice for us.

    We have invoice and now we need view to show it. I named view as Invoice.cshtml. It doesn’t use layout page as we don’t need any frame UI shown around the view. This view with styles forms nice invoice we can also show in browser to print it out. Here are styles for view. Here is InvoiceHtml() action I added to Home controller. When running web app...

    Let’s add now another action to Home controller and name it as InvoicePDF(). This action uses the same view we built above but it turns to PDF-file. One thing to notice – instead of another hell of code to just get the PDF and get it to browser we have single line of code that takes care of everything. Here is our invoice as PDF-file. Two flies wit...

    There are not many cross-platform options to generate PDF-files on ASP.NET Core but ? is the best one I met this far. Although it needs some small steps to do besides adding a NuGet package to solution it is still simple enough to go with it. I like the idea that it is easy to generate PDF-file based on view and return it as an action result withou...

  6. Nov 14, 2019 · Stored queries – general ones can be part of database context and specialized ones can live in query classes, factories or extension methods. There’s no actual need to implement your own unit of work and repositories if they just wrap DbContext functionalities without adding any new value. Simple idea – use what you already have.

  1. People also search for