Repository Pattern in C# - c#

I am trying to figure out the repository pattern for .NET. I think I have a pretty decent understanding of it, but I still don't feel comfortable using it.
I have googled for this topic, but found some advanced topics along with the repository pattern. What I am looking for is a basic knowledge of the concept, then I can build on it. With that said, can I get a recommendation of some good articles on the repository pattern?
Thanks

See the answers to Repository pattern tutorial in C#.

I recommend start by Fowler's definition
This concrete implementation could help you as well : )

Ayende's Rhino.Commons has a decent implementation.
I also benefitted from reading "Domain-Driven Design" by Eric Evans, which gives a good foundation of understanding the motivations behind Repository.

Have a look at following Article.
Using the Repository Software Design
Pattern
If you go through the whole series above, will be more help full

I'm in exactly the same position you were in. I found this Remondo.net blog post particularly useful. It walks through the implementation of a basic repository:
The Repository Pattern Example in C#

Related

Deferred Execution (IQueryable) to database level without using ORM?

Is there any easy reasonable/feasible way to efficiently pipeline results from the database?
I can't use any ORM tools. I believe LINQ-SQL does this with it's queryable interfaces which is what I wish to do here.
Based on your answer to the comments above, I think that what youre looking for is the LAZY LOAD PATTERN.
In few words, Martin F. describes this pattern as "An object that doesn't contain all of the data you need but knows how to get it."
So follow these links to learn more:
WIKIPEDIA,
MARTIN FOWLER

Is MSDN website sufficient for C# self-learning?

I know there are plenty of books on C#, but I'd rather learn by reading articles/guides and watching video tutorials. Would Microsoft's MSDN website be enough to teach myself C# in depth?
Thank you.
**Update*:*
#Jon Skeet: Thanks for your honest answer. I might just do that then, - I'll get Table of Contents from a C# .NET book and then go through each topic on MSDN.
Thanks again to all of you. I wish I could mark everyone's answer.
All the information is there, yes. Heck, the C# specification is available there, so that's all you need, in theory.
However - and I'm biased as the author of a C# book, of course - I believe that books add value by giving you a structured learning experience. Authors put a lot of time into working out the order in which to introduce concepts so that it makes the most sense.
Of course you could just take the table of contents from a C# book and then look up bits of MSDN in that order - but a good book will lead you through in a more orderly manner, building on examples and areas you've learned before rather than treating each one individually.
IMHO this will depend on your general programming level. If this is your first encounter with programming I think that a book would be better than MSDN. If on the other hand you have experience with similar technologies such as Java there's no reason MSDN wouldn't be enough as it contains extensive documentation, many tutorials and samples.
MSDN comprehensively covers all aspects of C# and the .Net platform. so Yes MSDN is sufficient to learn C#.
I would say so too, but only as a reference. That's what I did, and still do.
Edit: It might be hard for a beginner, but not impossible.
I think MSDN is a very good place to teach yourself C# in depth, that being said I don't think it's a good source to get you started.
Let me explain... MSDN is a great place when you want to work out how things work and why, what other options are there and all the rest of little details other sources usually overlook, but can be important. However, I think it lacks a certain "get up and do something meaningful" attitude you are looking for when learning a new language.
Just my 2 cents worth though.
Though I personally didn't learn it that way, there are some excellent resources on the MSDN now vs when I started with .NET.
In general, if you're going to learn C# from the MSDN, your launchpad will be here. If you're new to programming in general, here looks like a good place to start.
As far as I see it, there are articles about how to do things and articles about classes/methods, etc.
Some of the examples in articles about a class or method aren't enough for you to say that you know them and don't discuss everything, so I'd say they're a starting point - together with blogs and articles and tutorials on other sites you will probably get a lot more information.
The articles about how to do things, that start with a problem and show how to solve it, are ok and clear (or at least the ones I've read).
It also depends on what you already know and what you're building on.

NCommon - resources, documentation

I like NCommon project, but the lack of resources and documentation makes it very hard to use.
Does anyone of you know some good resources, examples...?
I figured out some basic setting, like Repository Pattern etc. But i'm completly lost i.e. with "NCommon.Rules".
Thank you.
NCommon author Ritesh Rao has sadly been very quiet for the past year. His blog is nevertheless an excellent resource for discussion of the rationale behinde (some of) the ideas in NCommon.
I agree that it's currently difficult to understand what all the clever stuff in the framework is really for since there's no sample app included in the source.
Ritesh did say a while back that he intended Rhinestone to be a sample for NCommon but that never came to fruition. However, if you look here you'll see that Ritesh is about to make a renewed effort to do a sample app and has started work on NCommon 1.1 (now on GitHub)
One final note of caution is that Ritesh has not tagged all of the pertinent posts in his blog with the NCommon tag because he started disussing some of the patterns he's used before he thought of rolling it all into NCommon so check his older posts also. For example he talks about implementing a Persistence Ignorant Unit of Work but didn't tag it with NCommon.

Can any one suggest a step by step example for using moQ framework

Can any one suggest a step by step example for using moQ framework.
any guidelines or thumbrules that has to be followed while mocking objetcs . can be much help.
thanks.
Here's the moq quick-start
Update: To address your comment... A large part of writing testable code involves removing dependencies on classes/resources outside the scope of your control. A very common approach to doing this is by talking to interfaces instead of concrete examples.
It's a little much to describe properly (especially since I just rolled out of bed), so let suggest you pick up a copy of Roy Osherove's 'The Art of Unit Testing'. It's a fairly short book and is filled with good advice and lots of summary information to get you familiar with many of the approaches to unit testing.
I only started to use Moq recently and I am not sure how much help this will be but if you can get your hands on Chapter 3 of Pro ASP.NET MVC Framework there is a really good step-by-step example of using moq and NUnit with ASP.NET MVC.

MVP examples for Windows Forms

Is there good example code or a test project for explaining the Model–view–presenter (MVP) pattern. There are a lot of explanation links, but I want to have some good example code to show others without reinventing the wheel.
Jeremy Miller's "Build your own CAB" series is fantastic. You get a nice dose of MVP (along with some other smart client patterns such as Pub/Sub).
http://codebetter.com/blogs/jeremy.miller/archive/2007/07/25/the-build-your-own-cab-series-table-of-contents.aspx
You may want to try the Claymore Framework.

Categories