how to generate .EDMX using EF6 - visual-studio-2012

I am working on an asp.net mvc5 web application inside VS2012. now i have upgrade my EF from version 5 to version 6, using Nuget tool.
but on this link link it is mentioned that i need to use "EF 6x code generation template" to have my .edmx file using EF6 . so i installed the EF6 tools for VS2012. and now i want to map my database to my EF. usually on asp.net mvc4 + EF-5 i do the follow:-
right click on Model folder.
select data.
select "ADO.NET Entity Data Model".
as follow:-
but now as i am using EF6 , can i still select "ADO.NET Entity Data Model" or i need to select EF 6.x DbContextGenerator ? can anyone adivce on this please? now if i am not wrong select "ADO.NET Entity Data Model" inside VS2012 will automatically use "EF 5.X DbContext Generator" ? is this correct?

Related

asp.net core 3.1 - Add reference from class library to web application in the same solution

I have an asp.net core 3.1 solution, with web application project and another 2 class library projects.
files architecture
I am trying to add reference from one class library project to the other using Ctrl+".", but it doesn't give an option to do that in the IntelliSense.
How can I do the reference without IntelliSense ? (Adding it manually using CoronaPatients.Core also not working).
How to enable it from the IntelliSense ?
Well I have just discovered the right click on the project ->> Add ->> Project Reference... option, and check the project you want to reference to.
But still, why is it not in the IntelliSense ?

Unable to find MVC template in Visual Studio2015

Screenshot from Visual Studio2015
File -> New Project ->Web-> ASP .Net Web Application
I am using VisualStudio 2015 Community version, before I was able see option MVC on this page, but I am confused what should have went wrong.
I tried creating project using WebApplication option available, this created a template which mostly looks like MVC, few new folders like migration and services.
It will be great if someone can help me through this.

Using DTF with Installshield and Primary Output

I have problems with my InstallShield projects, that are using InstallerClasses, during the Major Upgrade. The setup is calling the old version InstallerClass or just throws error 1001.
I decided to use the DTF technology, but I am unable to link the generated *.CA.dll file to the "DLL Filekey" property. I am linking the project as a "primary output".
Any idea how can I use the DTF custom action project and link it to Basic MSI Installshield 2012 project? I want to avoid referencing the CA file directly because I am creating automated builds.
Many thanks,
Marek

using entity framework 5.0 with sharepoint 2013

I want to use entity framework 5.0 with sharepoint 2013. When I deploy a simple web part I get "entity framework 5 could not load file or assembly entityframework version 5.0" error.
Can I use entity framework with sharepoint 2013? If so what is the problem?
Thank you.
Note:I can use ef5 in web projects, in addition I have another machine setted up sp2010 and entity framework 4.0. They work fine.
on the package manifest add the entity framework to the safe controls, this will add the safe control in the web.config of the corresponding sharepoint web application.
I made a work around and use WCF services to connect database.

Where is WCF Data Services in Visual Studio Express 2012 for Web

I watched EF4.1 and n-tier application video for Julie Lerman,
she added a new ASP.NET Empty Web Application project in the solution (VS 2010). After that she added a new item, WCF Data Service.
I can not find this item in Visual Studio Express 2012 for Web. Could you please help me? Is this a limitation in the express 2012 version?
Here is an image of what I can see in the Add New Item form
I can't post answer my question, so:
I should intall "WCF Data Services 5.2 RTM Tools Installer"
More details on WCF Data services blog.
Thank you.
Yes, you need to install "WCF Data Services 5.2 RTM tools installer". For the VS pro and ultimate versions, we chain in the installer for "WCF data Services - 5.0". For the express editions, customers need to install the version they need.
One thing to note - even in Pro/Ultimate editions, the version that gets installed is 5.0. For newer features (like the new JSON format), customers will require to install the latest bits so that they can get all the new code generation features.
Thanks
Pratik

Resources