• Home
  • about
  • contact
Follow Us

ASISH.COM

The Possibilities are Infinite

  • Profile Summary
  • Skills
  • Recommendations
  • Angular
  • Xamarin
  • Dynamics CRM
  • SQL Server
  • Other
    • Contact Me
    • ASP.NET
    • Angularjs
    • Excel
    • Windows Server
    • Amazon Webservice(AWS)
    • English
    • WordPress
    • Office 365
    • SharePoint

ASP.NET Core

FromSqlInterpolated, ExecuteSqlInterpolated SQL Injection Free

1 year ago by Asish Punnose.NET

Creates a LINQ query based on an interpolated string representing a SQL query. If the database provider supports composing on the supplied SQL, you can compose on top of the raw SQL query using LINQ operators: As with any API that accepts SQL it is… Read More

ASP.NET Core Web API Custom URL

3 years ago by Asish PunnoseASP.NET Core

Use [HttpGet(“[action]”)] attribute to get the custom url for Web API for instance https://localhost:44339/api/Test/TestMethod

Integrate Swagger with ASP.NET Core API

4 years ago by Asish PunnoseASP.NET Core

https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-2.2&tabs=visual-studio

Set and Read values from appsettings.json on ASP.NET Core / Web API

4 years ago by Asish PunnoseAngular

1, Add the following code on appsettings.json { “ApplicationSettings”: { “TestSetting”: “TestValue” }, “Logging”: { “IncludeScopes”: false, “LogLevel”: { “Default”: “Warning” } } } 2, Add ApplicationSettings class on Startup.cs public class ApplicationSettings { public string TestSetting { get; set; } } 3, Add following… Read More

Unable to find fallback package folder ‘C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback’.

4 years ago by Asish PunnoseASP.NET Core

Solution:- Start PowerShell as Administrator and run the following command: mkdir “C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback” Then restart Visual Studio and everything should work.

An exception occurred while reading a database value for property ‘ ‘. The expected type was ‘System.Int32’ but the actual value was null.

4 years ago by Asish PunnoseASP.NET Core

Solution: Since the table values can be zero, they must be nullable in the data model with a question mark after the variable type This makes the variable nullable in Asp.Net class         public bool? has_Profil_Image { get; set; } public bool? has_Main_Image { get;… Read More

inline.bundle.js:1 Uncaught ReferenceError: value is not defined Angular ASP.NET Core

4 years ago by Asish PunnoseAngular

//GET: api/Student/5 [HttpGet(“{id}”, Name = “Get”)] public string Get(int id) { return “value”; } Solution:- change to [HttpGet] [Route(“api/Student/{id}”)] public string Get(int id) { return “value”; }

Scaffold-DbContext Use the Force flag to overwrite these files

4 years ago by Asish PunnoseASP.NET Core

Solution:- You can use Scaffold-DbContext command with -force flag. This way you can force scaffolding to overwrite existing model files. Scaffold-DbContext “<ConnectionString>” Microsoft.EntityFrameworkCore.SqlServer -t <tablename> -f Replace ConnectionString & TableName as per your requirements.

The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.

4 years ago by Asish PunnoseAngular

Recent Posts

  • Cannot update or delete a server farm. Your current usage is 110595 Mb and quota after the operation will be 110592 Mb June 27, 2022
  • HTTP/1.1 302 Moved Temporarily Backend service responded with a redirect. June 13, 2022
  • The scope ‘openid’ provided in request must specify a resource June 11, 2022
  • Flutter command to publish app to Play Store June 6, 2022
  • Profile Summary June 6, 2022

Advertisement

Recent Posts

  • Cannot update or delete a server farm. Your current usage is 110595 Mb and quota after the operation will be 110592 Mb
  • HTTP/1.1 302 Moved Temporarily Backend service responded with a redirect.
  • The scope ‘openid’ provided in request must specify a resource
  • Flutter command to publish app to Play Store
  • Profile Summary

Recent Comments

    Categories

    • .NET
    • Acronym
    • Angular
    • Angularjs
    • API Management (APIM)
    • Application Insights
    • ASP.NET
    • ASP.NET Core
    • AWS
    • Azure
    • Azure Active Directory
    • Azure Active Directory B2C
    • Azure App Service
    • Azure Data Factory
    • Azure DevOps
    • Azure Functions
    • Azure Logic Apps
    • Azure Networking
    • Bicep
    • C#
    • Cloudflare
    • Dart
    • Data
    • Dynamics CRM
    • English
    • Errors
    • Excel
    • Flutter
    • Microsoft Teams
    • MySQL
    • News
    • Nintex
    • Nodejs
    • Office 365
    • Office Add-In
    • Oracle
    • PHP
    • PowerApps
    • Powershell
    • Profile
    • Progressive Web app
    • Python
    • React
    • React Native
    • SharePoint
    • SharePoint FrameWork(SPFx)
    • SP2016
    • SQL Server
    • Technical
    • Technology
    • Typescript
    • Uncategorized
    • Visual Studio
    • Visual Studio Code
    • Windows
    • Windows Server
    • WordPress
    • Xamarin
    • YouTube
    • Home
    • about
    • contact
    Back To Top