Questions tagged [nerddinner]

an open source ASP.NET MVC project that allows Technology People to host their Lunches, Flashmobs, Dinners and informal get-togethers.

NerdDinner is an open source ASP.NET MVC project that allows Technology People to host their Lunches, Flashmobs, Dinners and informal get-togethers.

The source for the project is hosted at http://nerddinner.codeplex.com and contains branches that include use ASP.NET MVC versions 1, 2, & 3.

The live version of the site is available at http://www.nerddinner.com.

75 questions
154
votes
4 answers

What is ModelState.IsValid valid for in ASP.NET MVC in NerdDinner?

On the NerdDinner example of Professional ASP.NET MVC 1.0 there's a method to create a new dinner as copied bellow (page 89 of the free NerdDinner version). There it checks ModelState.IsValid for true. It seems to check if the model is valid for the…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
26
votes
5 answers

Request for Tutorial to add Openid Support to NerdDinner ASP.NET MVC application

I'm looking learn about ASP.NET MVC and OpenId using the ASP.NET MVC NerdDinner tutorial. I would like to replace the Authentication system in NerdDinner to be OpenId only. I've downloaded the latest DotNetOpenAuth libraries but I'm not sure how to…
TMC2K
  • 433
  • 5
  • 8
9
votes
8 answers

ASP.NET MVC: How many repositories?

I am in the process is designing a website in ASP.NET MVC and am perhaps a little confused as to the exact nature of a repository. Following the NerdDinner example, my site should have one repository which serves up the entities as I need them.…
Sergio
  • 9,761
  • 16
  • 60
  • 88
8
votes
2 answers

The current request for action 'Index' on controller type 'DinnersController' is ambiguous between the following action methods

I am getting this error after trying to implement paging support. I am on this step of the html tutorial: http://nerddinnerbook.s3.amazonaws.com/Part8.htm
B Woods
  • 580
  • 3
  • 7
  • 21
7
votes
2 answers

Dependency injection in NerdDinner - actually testing your repository or model

Consider a beginner dealing with Dependency Injection. We're analyzing two relevant classes in NerdDinner. DinnerRepository from the application: FakeDinnerRepository from the tests: They implement different logic, which of course is necessary, as…
p.campbell
  • 98,673
  • 67
  • 256
  • 322
5
votes
5 answers

In TDD and DDD, how do you handle read-only properties in fakes?

Question How do you handle read-only fields when creating fakes? Background I'm in the beginner stages of using ASP.Net MVC and am using Steven Sanderson's Sports Store and Scott Gu's Nerd Dinner as examples. One small problem that I've just hit is…
John
  • 3,332
  • 5
  • 33
  • 55
4
votes
4 answers

Simple MVC NerdDinners Lambda

In this code from Microsoft's MVC Tutorial NerdDinners: public class DinnerRepository { private NerdDinnerDataContext db = new NerdDinnerDataContext(); // // Query Methods public IQueryable FindAllDinners() { return…
johnny
  • 19,272
  • 52
  • 157
  • 259
4
votes
2 answers

Do the Nerd Dinner models use best practices for disposing objects?

I've been looking at the Nerd Dinner code and one thing they do in their models, is create an instance of the DataContext like this: public class DinnerRepository { private NerdDinnerDataContext db = new NerdDinnerDataContext(); public…
Keltex
  • 26,220
  • 11
  • 79
  • 111
4
votes
2 answers

How does NerdDinner's AddModelErrors work?

I'm going through the NerDinner free tutorial http://nerddinnerbook.s3.amazonaws.com/Intro.htm I got to somewhere in Step 5 where it says to make the code cleaner we can create an extension method. I look at the completed code and it has this to…
dtc
  • 10,136
  • 16
  • 78
  • 104
4
votes
3 answers

Can't open NerdDinner project in vs2008

NerdDinner.csproj won't load in vs2008 sp1 with .net 3.5 sp1. Am I not up-to-date on these tools or something? It complains this project type not supported on this installation.
P a u l
  • 7,805
  • 15
  • 59
  • 92
3
votes
2 answers

How should I namespace my models in ASP.NET MVC? Confused about Nerd Dinner

I am learning ASP.NET MVC and I like it. However, I am very confused about the right approach to namespacing my models. While dissecting the NerdDinner sample app I noticed that everything in the Models folder belongs to the Models namespace. The…
adolfojp
  • 2,961
  • 4
  • 24
  • 21
3
votes
1 answer

dotnetopenauth ajax post tutorial

I been looking at nerd dinner 2.0 and I see that for their openid they like a an ajax request. I know you can't go full ajax style(ie I can't stick the webpage in a jquery ui dialog) but you can open another window. After some time looking at the…
chobo2
  • 83,322
  • 195
  • 530
  • 832
3
votes
2 answers

MVC, ascx and Javascript best practice(s) - how to create self-containing controls? NerdDinner does it wrong

The question is how to create controls/partial views/edittemplates (ascx files) in ASP.Net MVC2 so that they are "self-containing". Self-containing means here that if some Javascript code should be applied on the control, that's not included in the…
peterfoldi
  • 7,451
  • 5
  • 21
  • 19
3
votes
1 answer

Dependency Injection, IoC and Mocking finally explained in a simple and understandable way!

I've been banging my head against the wall trying to understand these concepts for a week now. I was really surprised when I came across with a very understandable and simple explanations of these concepts in the ASP.NET MVC NerdDinner application…
3
votes
1 answer

ASP.NET MVC: Implementing an OpenID sign-in page ala NerdDinner v2

Consider the log in page on NerdDinner.com: http://www.nerddinner.com/Account/LogOn Some nice features: jQuery effects on the OpenID choice popups for the other major providers Is this revision of the NerdDinner AccountController and its View…
p.campbell
  • 98,673
  • 67
  • 256
  • 322
1
2 3 4 5