automatically generate API controllers in Visual Studio - asp.net-core-2.0

I have an existing SQL Server database that I want to use in a ASP.NET Core 3.0 web API project using Visual Studio 2019.
I'm following this tutorial to help me figure out how to do this:
Create a web API with ASP.NET Core
I don't need any views, because I'm going to have a separate ReactJS project for my front-end views that the user will interact with in a browser. I just want to use this API so that the ReactJS part can connect to it when it needs to
I have the solution created, but I'm not sure how to get Visual Studio to automatically generate the controllers from the database for what the tutorial calls CRUD.
I installed the Microsoft.EntityFrameworkCore.SqlServer package using the Nuget Package Manager in Visual Studio.
Is there a special command I need to run or do I need to install a library?
Thanks!

Related

Add static files like html, css etc on publish alone in VS2017 .net framework project

Need to include static files (angular build results) on visual studio 2017 Web API project, in publish alone, for azure deployment. Kindly advice.
I'am not sure that you can do this using Visual Studio Publish tool for .net framework project ,
but I would recommend doing this manually using FTP.

Is it possible to set up multiple startup projects programatically on .NET Core?

I have a Web API project and an authentication project built on .NET Core and I set up several startups in Visual Studio to run the project when starting IIS. What to try to figure out is if there is any way to do this programming and not from visual studio. My idea is when running the API, somehow refer to another project (in my case the authentication server) at the API startup or elsewhere and this one runs both projects (as happens when setting up multiple startups in Visual Studio).

Create MVC in Visual Studio using Material Design

I want to create one project in Visual studio which use material design for its default User Interface. What are the steps that I have to follow to make this project.
What I have done is:
Created project
i. using asp.net web application
ii. using asp.net 4.5.2 MVC template
Installed MaterialSkin using Nuget Package Manager.
Now what I want is I want next other steps from here to completely install Material design.
I have my solution explorer image:

How to add TypeScript to Visual Studio 2012 ASP.net web forms web-site?

I'm trying to add TypeScript to an existing:
web-site (not a web-application)
web forms (not MVC)
Visual Studio 2012
I think, at a fundamental level, the problem is that an ASP.net web-site has no project. This means there is no ability to define "Build options". An ASP.net web-site cannot declare that a *.ts file should have a build action of Compile, since without a project file there are no build actions.
Obviously i'm not going to convert to a web-application (due to the unresolvable disadvantages of a web-applications).
Having said that, how do i add TypeScript to an:
ASP.net
web-site
web-forms
Visual Studio 2012
solution?
Bonus Reading
Using TypeScript in an existing Visual Studio Web Site project (web-application)
How do I add typescript to an existing Asp.Net MVC project? (mvc web-application)
typescript for web forms (web-application)
Converting existing JavaScript code to TypeScript in Visual Studio (web-application)
You can simply add typescript files to the project and manage the compilation externally (outside of visual studio) using something like grunt-ts https://github.com/basarat/grunt-ts (disclaimer : I am one of the authors)
You can add a *.ts file to the web folder, then run the ts compiler from the command prompt.
Or create a separate web app with just the TS file. Then in the build properties, add a command to copy it to the desired location.

visual c++ with html 5 project template not found

I downloaded Microsoft visual studio express 2012 for windows phone.
But when I go to new project, I can't find HTML5 app for visual c++ project template.
However HTML5 app for visual c# and visual basic is found.
It seem like microsoft done this on purpose (don't know why).
Does anyone know guide to create new HTML5 app with visual c++ project template?
any link would be useful.
edit: I did more searching and found this
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206940(v=vs.105).aspx
HTML-based phone apps aren’t a supported app model in Windows
Phone 8. However, a developer can create a managed app with a XAML
front end that uses an embedded browser control to display local HTML
content,
However this only apply to windows phone 8 and not windows 8
which is the source of confusion for me.
This is because the HTML app template is a WebBrowserControl hosted inside in small XAML/.NET app layer, and it isn't currently possible to write a XAML/C++ app on WP8.
If you need to add C++ you should be able to add a Windows Runtime component to your app and call through to that: although that would mean calling through from JS->.NET->WinRT.

Resources