Tags: , | Categories: development Posted by pieterg on 3/9/2010 8:11 AM | Comments (52)

Models
I currently have about 10 tables which are all sitting inside of a Linq2SQL dbml, I then have a Context class that managed the Linq2SQL database context.

For instance, let’s say I want to get entries, the Context class will make sure that the Linq2Sql context is up and retrieve all the entries

The ViewModels
Every View has a “ViewModel” associated with it. Let me give you an example.
For a blog, where you would like to view an Entry, the Entry might contain a title, content, tags and some comments.

The View Model for the View Entry (View) would look something like this

public class EntryViewModel
{
	public Entry Entry { get; set; }
	public List<Comment> Comments { get; set; }
	public List<Tag> Tags { get; set; }
}

The Controllers
They perform pretty mondain tasks, such as begging the ViewModel for some data. i.e. I want to view entry "”Hello World”, go fetch the data for me. Which the ViewModel in turn requests from the Model.

The Views
They are pretty dumb alright, all they do is take the ViewModel they are given and display it the nicest way they can.

Comments

ovulation calendar
ovulation calendar United Kingdom on 2/12/2010 3:24 PM Considerably, the article is really the sweetest on this noteworthy topic. I harmonise with your conclusions and will thirstily look forward to your approaching updates. Just saying thanks will not just be sufficient, for the wonderful clarity in your writing. I will instantly grab your rss feed to stay informed of any updates.!
Rosalee Suneson
Rosalee Suneson United Kingdom on 2/15/2010 6:10 AM Great post.  I've got some more like this on <a href="www.solargizmo.co.uk>www.solargizmo.co.uk</a> if you wanted to check them out.
guitar lessons for beginners
guitar lessons for beginners United States on 2/16/2010 12:07 PM i know i'm a little off topic, but i just wanted to say i love the layout of your blog. i'm new to the blogegine platform, so any suggestions on getting my blog looking nice would be appreciated.
Used Computers
Used Computers Canada on 2/17/2010 9:52 PM Thank you for another fantastic blog. Where else could I get this kind of information written in such an incite full way? I have a project that I am just now working on, and I have been looking for such information... Regards… http://www.pctechoutlet.com
learn to play guitar
learn to play guitar United States on 2/18/2010 8:11 AM can someone tell me how to get those little avatars to display in my comments section? thank you!
home made solar panel
home made solar panel United States on 2/18/2010 4:19 PM great source for that niche...
George Te
George Te United States on 2/18/2010 11:21 PM Hey what theme do you use? i really love it Laughing
Yon Thorndike
Yon Thorndike United States on 2/22/2010 5:31 AM Maybe it would be just a little better to use a more comprehensive website design for your blog. It will get you more visitors and links.
wow leveling guide
wow leveling guide United States on 2/26/2010 7:40 PM Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.
Link buildin guy
Link buildin guy United States on 2/28/2010 2:37 AM Excellent information here. This blog post made me smile. Maybe if you put in a couple of pics it will make the whole thing more interesting.
 online health insurance quotes
online health insurance quotes United States on 3/3/2010 2:31 AM i can see its almost similar to dream weaver,thanks for the nice update
decaf coffee
decaf coffee United States on 3/3/2010 5:14 PM You are utterly correct on that!
current health events
current health events United States on 3/7/2010 4:50 PM Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.
Pet Insurance
Pet Insurance United States on 3/8/2010 10:48 AM This is probably the most valuable information I've ever saw and read. Thanks for sharing and good luck for your future post.
fat loss 4 idiots
fat loss 4 idiots United States on 3/9/2010 7:46 AM i am subscribing. thanks
fibroids surgery
fibroids surgery United States on 3/9/2010 10:57 AM This is getting a bit more subjective, but I much prefer the Zune Marketplace. The interface is colorful, has more flair, and some cool features like 'Mixview' that let you quickly see related albums, songs, or other users related to what you're listening to. Clicking on one of those will center on that item, and another set of "neighbors" will come into view, allowing you to navigate around exploring by similar artists, songs, or users. Speaking of users, the Zune "Social" is also great fun, letting you find others with shared tastes and becoming friends with them. You then can listen to a playlist created based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will be relieved to know you can prevent the public from seeing your personal listening habits if you so choose.
women's plus size trench coats
women's plus size trench coats United States on 3/9/2010 12:56 PM Hiya, nice article, and great web site you have here! By the way.. what is this template that you are using... Is it custom made?
cord blood banking
cord blood banking United States on 3/11/2010 5:18 AM Between me and my husband we've owned more MP3 players over the years than I can count, including Sansas, iRivers, iPods (classic & touch), the Ibiza Rhapsody, etc. But, the last few years I've settled down to one line of players. Why? Because I was happy to discover how well-designed and fun to use the underappreciated (and widely mocked) Zunes are.
best exercise videos
best exercise videos United States on 3/13/2010 1:19 PM Whats up, great article, and great web site you've here! By the way.. what is this template that you are using... Is it custom made?
auto &amp; general
auto &amp; general United States on 3/14/2010 12:56 PM Very useful info. Hope to see more posts soon!
blacklisted
blacklisted United States on 3/15/2010 7:59 PM How do you know so much on this topic?
Hisako Cantin
Hisako Cantin United States on 3/16/2010 5:22 AM I really like your post. Always been very informational. I hope you'll keep up the good work and maintain the standard. Best of luck.
auto insurance
auto insurance United States on 3/16/2010 5:26 AM Maybe it would be just a little better to use a more comprehensive website design for your blog. It will get you more visitors and links.
car insurance calculator
car insurance calculator United States on 3/16/2010 5:26 AM How do you know so much on this topic?
Emory locksmith
Emory locksmith Georgia on 3/16/2010 9:12 AM Do you accept guest posts? I'd love to write couple articles here.
philadelphia locksmith
philadelphia locksmith Jamaica on 3/20/2010 10:27 AM HO YA asp.net asp.net asp.netI have been browsingonline more than three hours today, nevertheless I by no means found any interesting piece similar to yours about asp.net It really is pretty worth enough for me. Individually, if every website owners and bloggers made high-quality content as you did, the internet will likely be far more functional than ever before.
AVG Antivirus
AVG Antivirus United States on 3/21/2010 9:45 AM Thank you for this helpfull review. It really was helpfull. Keep up the good work.
locksmiths
locksmiths Republic of the Philippines on 3/22/2010 3:18 AM Hey about asp.net i do believe your weblog is rather F - Enjoyable i found it in google and i set it on my favorite list  wish to see further great posts from u  shortly.
upholstered ottomans
upholstered ottomans United States on 3/22/2010 10:51 AM Hiya. Thanks for all the information. On a side note, how do you deal with all the spammers you get on your weblog? My recent weblog is getting invaded by random spammers and I have been spending a lot of time removing comments its simply not funny. . I get so tired combating spam that I feed I ought to stop blogging entirely.
Beats Planet
Beats Planet United States on 3/24/2010 11:13 AM   The final release of VS 2010 and Visual Web Developer 2010 will have ASP.NET MVC 2 built-in – so you won’t need an additional install in order to use ASP.NET MVC 2 with them. Another good thing about it is that ASP.NET MVC 2 can be installed side-by-side with ASP.NET MVC 1, that means you can have some apps built with V1 and others built with V2 on the same machine. Thanks for this generous write up.
trackback
Graco Nautilus 3 In 1 Car Seat on 3/25/2010 7:12 AM Graco Nautilus 3 In 1 Car Seat

This stroller is great, it has all the features I’ ve wanted and could only find in 0 strollers. If you have read a negative warning regarding this stroller’ s safety on consumer reports, please be aware that that warning is with regards with the previous version of the stroller. Even so, the warning made me paranoid, so I strapped my infant car seat on the stroller and picked it up, tipped it, turned it up- side- down, shook it, dropped it, kicked it, etc. The thing held completely solid. When properly installed, the car seat will hold way more tightly than the non- universal infant carrier systems sold by Gracco, or Chico, etc.
Rapidshare
Rapidshare United States on 3/25/2010 7:57 AM This is a very intriguing post, I was looking for this knowledge. Just so you know I found your web site when I was searching for blogs like mine, so please check out my site sometime and leave me a comment to let me know what you think.
Search on Rapidshare
Search on Rapidshare United States on 3/25/2010 8:49 AM This article defines top file share services, their concepts and functionality, gives you an overall idea about Rapidshare and its abilities, describes Rapidshare search engines, their workflow and how to make them work for you, when searching for files and folders on Rapidshare.

Before we get to the description of Rapidshare search engines, get acquainted with this general top file share services services overview. As well as most world wide web surfers, you\'ve beyond doubt heard of Rapidshare and similar websites, created to help people easily spread movies, mp3s, media, software and files over the web. Created by German webmasters many years ago, Rapidshare became the most popular file share within several years in the world, which led to invention of an worldwide-targeted version used by more than 200 million people from 200 countries. Because of the tremendous popularity of this file share service, first Rapidshare search engines appeared on web nearly 1 year ago. If you want to share vacation photos with your friends, if you need to send some files and documents to your colleagues bypassing mass e-mail distribution, just use Rapidshare to let people quickly get all the files from any computer connected to the Internet.

Moreover, you\'ve definitely came across plenty of blogs and forums sharing files through Rapidshare as well as Rapidshare search engines that help people searching for various files there. It helps them saving bandwidth and provide file links to their visitors. As you can assume Rapidshare is a very helpful, very popular file distribution service that allows people, companies, creators and others instantly share everything you want over the web.

And still, there is one unsatisfactory feature. Rapidshare does not allow you to search for content in their database. Despite of that you are sure that a necessary file is most likely hosted on Rapidshare and you can take it, you can not find it, since the\'ve missed to add search engine.

This is the point where Rapidshare search engines become handy. Rapidshare search engines are very similar to web search engines with one important distinction. They don\'t index the Internet - they index Rapidshare and similar websites, that\'s how you always get plain links without garbageous pages. Just try Rapidshare search engine and you will surely find everything you need within a wink of an eye!

Considering all information above, let\'s evaluate general types of Rapidshare search engines available out there. Essentially we can outline three basic variants: basic, advanced and full rapidshare search engines. Basic search engines offer poor services. Their pages usually contain only a search string. And nothing else. You type a keyword, click the Search button, get a list of results and get the file. Major disadvantage of this family of websites is that they\'re unable to display files related to your search term, they don\'t check files for consistency and they don\'t crawl other file storages, besides of Rapidshare. Basically they are good, but generally, they are not worth a nickle. Next type indexes more Rapidshare search engines providing linked search term, check files for consistency and give hints about linked and likely content. But despite of this advantage, the don\'t help you search on many other file share services and they won\'t provide you with essential features of top websites. And full-featured Rapidshare search egines are ready to offer you a maximum of services combining many useful options and indexing almost all of the leading web file hostings, besides of Rapidshare and it\'s derivatives. As you can see there is no doubt that you must find a advanced Rapidhsare search egnine to take what you need at this sort of services.
baby room furniture
baby room furniture United States on 3/25/2010 9:07 AM Easily, the post is really the sweetest on this worthwhile topic. I fit in with your conclusions and will eagerly look forward to your approaching updates. Saying thanks will not just be sufficient, for the exceptional clarity in your writing. I will immediately grab your rss feed to stay privy of any updates.
Ellamae Towle
Ellamae Towle Canada on 3/29/2010 5:15 AM Great post, thanks a lot ;)
princess cut engagement rings
princess cut engagement rings United States on 3/30/2010 6:11 PM Hey mate, when browsing at your site i see some sort of weird codes all over the page, in case it's important I just thought I'd let you know it says this with all sorts of other stuff after it: Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.
cord blood banking
cord blood banking United States on 4/1/2010 3:58 AM Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.
tier stand
tier stand United States on 4/1/2010 8:02 PM Your blog appears quite informative. Can you please tell me how can I read your rss blog?
trying to conceive tips
trying to conceive tips United States on 4/3/2010 11:48 AM Comfortably, the post is in reality the freshest on this notable topic. I agree with your conclusions and will eagerly look forward to your next updates. Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay informed of any updates.
vinciamo ai casinò
vinciamo ai casinò India on 4/5/2010 4:19 AM It helped me with ocean of knowledge so I really believe you will do much better in the future I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer!
adjustable air beds
adjustable air beds United States on 4/6/2010 2:45 AM It's so tough to encounter right information on the blog. I realy loved reading this post. It has strengthen my faith more. You all do such a great job at such Concepts... can't tell you how much I, for one appreciate all you do!
Watch Online Sports Free
Watch Online Sports Free United States on 4/6/2010 2:47 AM This was a useful post and I think it is rather easy to see from the other comments as well that this post is well written and useful. Keep up the good work.
phonics reading
phonics reading United States on 4/6/2010 4:50 PM This is a very intriguing post, I was looking for this knowledge. Just so you know I found your web site when I was searching for blogs like mine, so please check out my site sometime and leave me a comment to let me know what you think.
gay dating
gay dating United States on 4/6/2010 4:57 PM Its very awesome article,all the content is so beneficial and valuable for us.presentation of article is very good,so I will bookmark it for sharing it with my  friends.Thanks for sharing nice and pretty post.
Upholstered Dining Chairs
Upholstered Dining Chairs United States on 4/7/2010 11:50 AM Thanks. I get knowledge again from your posting.
Rika the "Locksmith"
Rika the "Locksmith" United States on 4/8/2010 1:46 AM Hello everyone. This weblog was fantastic! Lots of cool data & inspiration. Keep 'em coming... u all perform such a necessary work at writing... can't let you know how much I, for one appreciate all you dO!
installment loans
installment loans United States on 4/8/2010 9:09 AM I am so glad that I have found this your article because I have been searching for some information about the ASP.NET MVC 2.0 Pet Project almost an hour. You helped me a lot indeed and reading this your entry I have found many new and useful information about this question. Well, I will definitely bookmark your website and wait for other useful and detailed posts like this one in the future. Regards, Frank.
best beard trimmers
best beard trimmers United States on 4/9/2010 11:28 PM Hi there, great web site with good info. I really think I will be coming back here often. There's just one factor that annoys me and that's the error I get when I try to post a comment. I usually get the '500 error' page, and have to retype the comment again to submit it.
Enclosed trailers
Enclosed trailers United States on 4/10/2010 11:40 AM Its very awesome article,all the content is so beneficial and valuable for us as more info shared on ASP.NET. Presentation of article is very good,so I will bookmark it for sharing it with my  friends.Thanks for sharing nice and pretty post.
Web Design Hong Kong
Web Design Hong Kong United States on 4/11/2010 4:37 PM I found lots of interesting information here. The post was professionally written and I feel like the author has extensive knowledge in the subject. Keep it that way.
Shopping
Shopping United States on 4/11/2010 5:04 PM Thanks a lot for enjoying this beauty article with me. I am apreciating it very much! Looking forward to another great article. Good luck to the author! all the best!
trackback
read more on 4/28/2010 4:19 AM read more

Each standard plan, labeled A through L, offers a different set of benefits, fills different“ gaps” in Medicare coverage, and varies in price. Medigap plans K and L are new plans that became available in 2006. The basic benefits for Medigap plans K and L are similar to the basic benefits offered in plans A through J, but these plans have lower monthly premiums and have higher out- of- pocket costs.

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading