HighTechTalks DotNet Forums  

MVC Model Question

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss MVC Model Question in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
BJ
 
Posts: n/a

Default MVC Model Question - 01-03-2008 , 04:55 PM






First let me state I do have VS2008 installed, but have not had the
time to play it at all. I have had time to read Scott Guthrie part 1
article on MVC.

<<<http://weblogs.asp.net/scottgu/archi...3/asp-net-mvc-
framework-part-1.aspx>>>

I really liked the way he explained MVC and the example he used made
it easy to see what he was discussing. I (he) missed the link between
the database model and the Data Context class.

Is the assumption that if the name of my database model is
Northwind.dbml then the Data Context class will be
NorthwindDataContext.cs? Or is there preprocessor somewhere that makes
that link?

TIA

-B

Reply With Quote
  #2  
Old   
BJ
 
Posts: n/a

Default Re: MVC Model Question - 01-03-2008 , 05:16 PM






Never mind. Scott has another article on Linq that states ...

"Selecting the "LINQ to SQL" item will launch the LINQ to SQL
designer, and allow you to model classes that represent a relational
database. It will also create a strongly-typed "DataContext" class
that will have properties that represent each Table we modeled within
the database, as well as methods for each Stored Procedure we
modeled."

-BJ


On Jan 3, 2:55*pm, BJ <julie6232... (AT) yahoo (DOT) com> wrote:
Quote:
First let me state I do have VS2008 installed, but have not had the
time to play it at all. *I have had time to read Scott Guthrie part 1
article on MVC.

http://weblogs.asp.net/scottgu/archi...3/asp-net-mvc-
framework-part-1.aspx

I really liked the way he explained MVC and the example he used made
it easy to see what he was discussing. *I (he) missed the link between
the database model and the Data Context class.

Is the assumption that if the name of my database model is
Northwind.dbml then the Data Context class will be
NorthwindDataContext.cs? Or is there preprocessor somewhere that makes
that link?

TIA

-B


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.