ODATA template in Visual Studio 2010 - visual-studio-2010

I don't see a OData (or WCF data service, or ADO.NET service) template in visual studio 2010. Am I missing something

If you create a new ASP.NET application, you can add to it a WCF Data Service, which should be what you are looking for.

These are the templates you need:
New Project => Visual C# Templates => ASP.NET Empty Web Application
Add an item to the new project => Visual C# Templates => ADO.NET Entity Data Model
Add an item to the new project => Visual C# Templates => Web => WCF Data Service

You can install WCF Data Services for OData. Doing this willl add a WCF Data Service (for OData) template under the Web tab of VS2010.

Related

How to associate item templates with Project Type in Visual Studio 2019?

I would like to create a new F# Web ASPNET (not Core) Application using the MSBuild based legacy project format, not the SDK project. In Visual Studio 2019, the only available option for this project type is C#. I've attempted to reverse engineer the project setup by creating a new F# class library and modify the ProjectTypeGuids.
The C# Web Application uses the following project type GUIDs
349c5851-65df-11da-9384-00065b846f21 - ASP.NET MVC 5
fae04ec0-301f-11d3-bf4b-00c04f79efbc - C#
On a basic F# .NET Framework class library, I attempted to add the ASP.NET and F# project type guids to the project.
<ProjectTypeGuids>{349C5851-65DF-11DA-9384-00065B846F21};{F2A71F9B-5D33-465A-A702-920D77279786}</ProjectTypeGuids>
This succeeded in adding the web configuration to the project properties, but now I am unable to add any items to the project at all. It looks like in the past you needed to associate the right language templates with the project guid in the registry editor (see this link)
These entries don't appear to be anywhere that I can see in the registry, for any installed version of VS (which at this point is just 2017 and 2019). How can I enable F# item templates for my F# web application?
While not exactly an answer to the question, I think the pain of trying to do this is likely proof that you SHOULDN'T do this. In the end my approach will be to simply implement the Web Application in C#, while keeping as much code as possible in F# targeting netstandard.

Visual Studio for Mac add ADO.NET Entity Data Model template

How would I add the ADO.NET Entity Data Model template to my WebApi project in Visual Studio for Mac?
In Mac, to add a Data Model using the DataFirst technique you need to use the scaffold command.
https://www.learnentityframeworkcore.com/walkthroughs/existing-database
In the above blog, this process is explained neatly.

consuming service reference typescript

How to consume service reference in Typescript HTML App using Visual Studio 2013.
I have added a service reference to my typescript HTML app. but don't know how to call service client in typescript code.
Typescript HTML App template in VS 2013 uses C# project type as wrapper. That means you can add Service Reference in UI. But there is no built in support to consume such reference in TypeScript - there is no service client unless you implement it.

Cannot Import Asmx web service reference in vs 2010

I have web site built in visual studio 2008 using .net framework 3.5.Now i want to migrate the web site code to visual studio 2010 but want to keep the target framework to same i.e 3.5. The web site is built using vb.Net.MY problem is when i am importing the reference of web service in visual studio 2010 it show error as "NameSpace or type specified in imports 'WebReference' does not contain any public methods".My service name is "WebReference" . I thought may be .net has built in System.web.services.Description.Webreference ,may be it shows conflict ,so i tried to rename it to "WebReference1" or some other name but it does not have any effect,yhe error is still there.What am i missing?
probably it is because you cannot use importer :
ServiceDescriptionImporter importer = new ServiceDescriptionImporter();
in vs 2010....you need vs 2012 because that only has support for .net framework 4.5 which in turn has assembly references to ServiceDescriptionImporter .

VS 2010 Web Service project template missing?

This may be a silly question, but I can't find the web service application template when I try to create a new project.
You propably want a WCF Service Project: New Project -> Visual C# (or Visual Basic) -> WCF Service Application.
I've just struggled with this one myself.
It's still there buried in specific options.
New Project -> Visual C# (or VB) -> Web (important)
Make sure the .NET Framework Filter is set to 3.5 or lower
The project template is called ASP.Net Web Service Application
Counter intuitively it doesn't show up if you select the broader menu: New Project -> Visual C#
Do a full install on ultimate; it is still there.

Resources