.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

MVC Module

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :ASP.Net

I am very new to MVC so I have some confusions regarding models when we have relations between multple tables.Formally I was using views or stored procedures of sql to manipulate data but now I am using Entity Framework so confused how my model should look like ?

I have a table for Users , UserImages , UserRoles . UserImages and UserRoles is referring to UserID from Users table.I am not sure how my model should be ? While displaying data I generally use a view created in sql server by joining these 2 tables. And when an user is edited or created I update these 3 tables.

Not sure what should my model look like in this case ? Do I create a sql server view and add it to edmx ? Or add 3 tables seperately in EDMX and create custom properties in User model for those other 2 tablels?

View Complete Post

More Related Resource Links

IIS request filtering module


Hi folks,

I have migrated my web application to iis 7.5 Now I am using windows 7 as dev machine.

the problem is it takes several seconds to download a single page into web browser now. It contains only 300 records.

Everything is ok on prod website though. Prod version contains up to 200000 records .I can't also use code profile tool of red gate to analyze possible bottlenecks since the software in question can't restart IIS. No errors in IIS logs. I am using ISAPI Rewrite 3 filter by Helicon to apply some URL rewriting rules. I am thinking about conflict between ISAPI rewriting rules and default IIS 7.5 request filtering rules, since the IIS request filtering module gets a higher priority than even the built-in IIS 7.5 rewriter module. Is it possible to tweak the module through web.config so that priority is given to ISAPI rewriting rules or something like that?

Frankly, I spent several days to figure out solution. No success...

I've also deployed the application on IIS 5.1. Everything works fine. Any ideas about possible solution for IIS 7.5?

Test Run: .NET Module Testing with IronPython


This month we demonstrate how easy it is to use IronPython to test .NET-based libraries.

James McCaffrey

MSDN Magazine June 2009

Configure a module through IIS Manager?


I've developed a custom module with a custom configuration section.  Is there a way to create a plug-in or module so IIS Manager can manage the module?  I'm looking for the ability to enable or disable it by site as well as setup various configuration properties.

Module 1: Getting Started Building Web Parts in SharePoint 2010

SharePoint 2010 and Visual Studio 2010 enable you to create Web Parts quickly and easily. You can use project templates and project item templates to help you get started building standard ASP.NET Web Parts. You can also build a new type of Web Part called a Visual Web Part.

Module 3: Building Blocks for Web Part Development in SharePoint 2010

The SharePoint platform includes many built-in Web Parts that you can include in your solution, and provides many more components that you can use in Web Parts that you develop.

Module 5: Accessing SharePoint 2010 Data with Client-Side APIs

SharePoint 2010 provides a new client object model that enables you to create SharePoint solutions that run remotely from the SharePoint server farm.

Module 6: Accessing External Data with Business Connectivity Services in SharePoint 2010

SharePoint 2010 provides a new set of technologies known as Business Connectivity Services for retrieving, editing, updating, and deleting data from external systems.

Module 7: Developing Business Processes with SharePoint 2010 Workflows

SharePoint 2010 provides a powerful workflow framework that enables you to implement custom business processes that are driven by SharePoint data.

Module 8: Creating Silverlight User Interfaces for SharePoint 2010 Solutions

SharePoint 2010 integrates closely with Microsoft Silverlight to enable you to build compelling user interfaces that interact with SharePoint data.

http module calling order


Our site uses urlRewriter http module that does the url rewriting for us.

I want to create another http module that will handle our customize URL redirects. Now I want this new customize http module to be call before the UrlRewriter module (to avoid page not found messages the UrlRewriter generates). Is there a way we can contol the calling order ?

http module


I am trying to write a http module that redirect the url:




basically i got a lookup table that contain the Url Alias "breaking_news.aspx"  and its associate ID. Any idea how can i accomplished it?

IIS Crash with Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42

The scenario is that, a .Net Webservice is making calls to C++ DLL (made from VC6 studio) This app works perfectly well for sometimes or over a period or for a high volume of hits and suddenly you see IIS crash along with service crash with the following error "Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42" There is no pattern for this problem. The work around is to restart the IIS.    Can anybody tell me what could be the issue here?

Errors in the back-end database access module. OLE DB reported an overflow of the data type for colu

Getting an error when processing a dimension, Errors in the back-end database access module. OLE DB reported an overflow of the data type for column 0. Errors in the OLAP storage engine: An error occurred while the 'xxxxxx' attribute of the 'Dim XXXXXX' dimension from the 'XXXXXXX' database was being processed. Content of this dimension is very similar to one that is processing no problem. The content of the dimension is one field only of type date.  The original content was imported through SSIS from a DB2 database on an iseries machine.  Thought a first the issue was because of the data contains some null values but the dimension the process OK also has some null  values.  The dimension that processes ok is also a single field of type date. Any help greatly appreciated, Roscoe

HTTP Module in ASP

is there any mechanism similar to HTTP Module in classic ASP?

IIS 7 error Handler "svc-ISAPI-4.0_32bit" has a bad module "IsapiModule" in its module list

Hi experts, I'm trying to  host my WCF(3.5) on IIS7  and I get the below error.  HTTP Error 500.21 - Internal Server Error Handler "svc-ISAPI-4.0_32bit" has a bad module "IsapiModule" in its module list   I tried reinstalling >net 4(Some forum mentioned to do that) and also aspnet_regiis.exe -i in VS 2010 command prompt. Thanks in advance, KP Nothing helped.

Rewriter http module problem in IIS 7

I had this problem a few months ago however this time I cannot seem to fix it.The module uses redirection rules read from a database to redirect non-exisistant pages.  However I get resource cannot be found errors in IIS 7.IIRC the last time I simply set the application pool to classic and the redirecting worked.  I assumed doing this again would fix the problem. However it doesn't.  When I change the application pool for the site to  ASP.NET v4.0 Classic I get this error "Handler "PageHandlerFactory-ISAPI-4.0_32bit" has a bad module "IsapiModule" in its module list".The project has recently been upgraded to use v4 of the framework (it was v2 previously). What should I be looking at to try and solve this problem.

Silverlight + Sharepoint 2010 using module ?

Dear Folks, I have developed Silverlight application with simple label and created one Empty sharepoint application too. I configured the module with silverlight application using project output reference. but I am no able to implement the Silverlight web parts in sharepoint 2010. Kindly give me some details Regards Immanuel c  
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend