asp.net mvc database first .cs files not generated - asp.net-mvc

I have an existing Access database and need to build a REST api. The best way I thought is to migrate it to SQL server and build an asp.net mvc web api. But I'm a complete noob in EF... I tried database first following this. But EF didn't seem to generate any .cs classes..or .tt files.
The only file I got is .designer.cs.
Any help is greatly appreciated..

Related

Coordination WebMatrix.Data and WebMatrix.WebData work with Oracle DB

i have a MVC 5 project with an oracle DB,
i need to use sum sort of membership provider, as i understand it,
at the moment there's no boilerplate provider which works with OracleDB for mvc.
can anybody recommend a solution?
I'm trying to adjust microsoft "WebMatrix.Data" and "WebMatrix.WebData" to work with oracle ,i have the source code from http://aspnetwebstack.codeplex.com/SourceControl/network,
has anyone tried this before? and if so perhaps can help with helpf links or the code?
as it happens i solved it by downloading the source code for WebMatrix from Microsoft git and rewriting the entire project to work with Oracle DB

Report Wizard in an MVC Application

After some research, I understand that we can use sql server reporting in an mvc application as long as the view engine is web form instead of razor.
The tutorial I have been trying to follow is:
Creating an ASP.net reporting using Visual Studio 2010
The problem is in Part 2. I cannot find the local classes listed as Data Source. The only choice is to set up a new xsd file to connect to the database. How can I have my reports to use my data repositories as their data source?
The credit goes to TNCodeMonkey!
Not only the project has to be compiled first, we must have an index.aspx file in the root folder of the MVC Web Application.
I don't know why. But the Data source is populated with all my dll's once that magic file is in place.

How to put an ASP.Net website inside MVC website?

I have an ASP.Net website and I want to put this website inside a MVC website I recently did, so this ASP.Net website will be part from the MVC website.
Is there a standard or a known way to do so?
Ask me if you want to know more information, I am not sure what info could help.
this shows merging an existing asp.net site into a new MVC3 site. The same applies for merging existing into existing. Just get a merge tool and merge them!
http://www.hanselman.com/blog/IntegratingASPNETMVC3IntoExistingUpgradedASPNET4WebFormsApplications.aspx
Could you put your MVC project into the webforms one? If so, this nuget will help with that: http://www.nuget.org/Tags/WebForms

ASP MVC 3, generation of tables fail

Edited:
i'm trying to learn ASP MVC, but i'm having a problem, the Web Developer Express is failing to generate the database tables.
Please How i know where is the problem?
-
i'm just following the asp mvc website tutorial, and there the model class "make - create" the database + tables just pressing F5.... in my first tutorial all was perfect... but now i don't know what's happening
Thanks you guys :)
If you have already created a database you'll need to tell the app that you want to drop and recreate the tables when the database changes. Try adding this to Global.asax
System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<YourApp.Models.YourAppContext>());

ASP.NET MVC 3 File Structure

I apologize for the vague title - I am new to ASP.NET MVC coming from PHP, and I have teamed up with a .NET developer that has a webforms background.
When working with MVC in PHP, all of my files are visible on the server - that is to say, I can go into any of my model, view and controller files and edit any of the code remotely without a problem.
In .NET MVC, I couldn't find the controller or model files, so I asked the developer how the webpage is being put together, and he told me about how .NET compiles code into .DLL files and that I am unable to access this. I wanted to view a controller to see how it was pulling together my views, but didn't even see a controller folder on the server.
To me, something about this doesn't sound right, but I am not sure because of my lack of experience in .NET. Can someone provide input as to if this is the typical .NET scenario, and if not, what is he doing wrong? Should I take this as a red flag? Keep in mind that .NET MVC is new to both of us.
Thanks!
There is no code files because these code files was compiled into DLL files during Publish process. It's not strange - it's even better because of performance reasons. It's common scenario for all ASP.NET and ASP.NET MVC applications.
You can deploy yor application via XCopy deployment (to have all .CS files etc.): simply copy all files to destination folder. Then your site will be compiled (into App_temp destination) by runtime on first run. Your .CS files will still be in place.
You can read more about Publishing procees here:
Walkthrough: Publishing a Web Site
Publishing Web Sites

Resources