Click here to Skip to main content
12,825,670 members (35,111 online)
Click here to Skip to main content
Add your own
alternative version

Stats

305.3K views
4K downloads
199 bookmarked
Posted 10 Jun 2009

Implementing Repository Pattern With Entity Framework

, 2 Nov 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
Implement Repository Pattern in data access layer with Entity Framework 4.0 and Below version( Working with ObjectContext and EntityObject )
 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Morshed Anwar
Team Leader PracticePRO Software Systems Inc
United States United States
"In my childhood, my uncle has shown me how to see the cloud in a close look and I understand that one can draw some elements of the Earth in the sky-canvas if he/she wants to. After that the cloud becomes closer to me and It teaches me one thing that, a deeper-look to something will give you some clues to draw your imagination. You can able to see that one which you have build-up in your mind.

Years past, I have started my career as a software engineer and has been looking for passion in my coding and development which I should be to enjoy my profession and has started asking myself- 'am I doing any engineering here?!' Is my code becoming that thing which I have designed in my mind? So to find that answer I have tried that old solution here... I have decided to come closer to my code and start analyzing them. And it is really working for me and at least it gives me the confidence that I can build something that I really want to. I can draw my thinking there through my code and can build-up my vision that I have designed in my mind. It also helps me to think out of the box, solve each problems by making blocks and make me careful on each steps." ----- says Morshed Anwar.

• Morshed's Technical Blog site: http://morshedanwar.wordpress.com/

• Morshed's Technical articles those are published in Codeproject site: http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=2992452

• Morshed's Linkedin profile: http://www.linkedin.com/in/morshedanwar

• Morshed's Facebook Profile : http://www.facebook.com/morshed.pulok

Beside all these Morshed like to do - photography and music. Here is Morshed's Flickr photos : http://www.flickr.com/photos/morshed_anwar/

You may also be interested in...

Pro

Comments and Discussions

 
GeneralMy vote of 5 Pin
Member 150559020-Jan-11 2:26
memberMember 150559020-Jan-11 2:26 
QuestionUsing static methods. Pin
MartinSpasovski19-Jan-11 10:22
memberMartinSpasovski19-Jan-11 10:22 
AnswerRe: Using static methods. Pin
chjerome30-Mar-11 11:09
memberchjerome30-Mar-11 11:09 
QuestionCompound Key support Pin
tr1stan9-Dec-10 4:24
membertr1stan9-Dec-10 4:24 
GeneralNot Comipiling Pin
Gana3-Dec-10 16:26
memberGana3-Dec-10 16:26 
GeneralRe: Not Comipiling Pin
Gana3-Dec-10 16:36
memberGana3-Dec-10 16:36 
GeneralHelp Pin
SanjayDhooom17-Nov-10 13:56
memberSanjayDhooom17-Nov-10 13:56 
Questioncan you share this POCO with Repository Pattern Pin
raghuram Muvvala9-Aug-10 11:56
memberraghuram Muvvala9-Aug-10 11:56 
Hi
I couldn't find the download for the POCO with Repository Pattern can you please let me know if I am missing something.

Regards,
Ram
GeneralWorking with multiple entities [modified] Pin
Hari Krishn2-Aug-10 15:19
memberHari Krishn2-Aug-10 15:19 
GeneralRe: Working with multiple entities [modified] Pin
BillW4227-Aug-10 10:16
memberBillW4227-Aug-10 10:16 
QuestionWCF & IRepository [modified] Pin
urnelson3-Jun-10 12:18
memberurnelson3-Jun-10 12:18 
AnswerRe: WCF & IRepository Pin
Morshed Anwar30-Jun-10 1:26
memberMorshed Anwar30-Jun-10 1:26 
GeneralGreat article!!! Pin
jakka3010-May-10 13:52
memberjakka3010-May-10 13:52 
GeneralRe: Great article!!! Pin
Morshed Anwar11-May-10 23:20
memberMorshed Anwar11-May-10 23:20 
GeneralTryGetObjectByKey Pin
abellix26-Apr-10 11:32
memberabellix26-Apr-10 11:32 
GeneralRe: TryGetObjectByKey Pin
Morshed Anwar27-Apr-10 2:14
memberMorshed Anwar27-Apr-10 2:14 
GeneralRe: TryGetObjectByKey Pin
abellix27-Apr-10 9:05
memberabellix27-Apr-10 9:05 
GeneralRe: Entity Framework made me feel sick Pin
Germyan23-Feb-10 22:39
memberGermyan23-Feb-10 22:39 
QuestionSlow? Pin
Boyfer7-Feb-10 13:54
memberBoyfer7-Feb-10 13:54 
AnswerRe: Slow? Pin
Morshed Anwar7-Feb-10 21:09
memberMorshed Anwar7-Feb-10 21:09 
QuestionHow to implement specification and sorting Pin
san32972-Feb-10 7:01
membersan32972-Feb-10 7:01 
QuestionObjectQuery Vs IQueryable Pin
Member 425624822-Jan-10 16:19
memberMember 425624822-Jan-10 16:19 
AnswerRe: ObjectQuery Vs IQueryable Pin
Morshed Anwar26-Jan-10 1:39
memberMorshed Anwar26-Jan-10 1:39 
GeneralSort Expression Pin
AMBS - TI28-Dec-09 7:41
memberAMBS - TI28-Dec-09 7:41 
GeneralRe: Sort Expression Pin
Morshed Anwar30-Dec-09 21:36
memberMorshed Anwar30-Dec-09 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 2 Nov 2012
Article Copyright 2009 by Morshed Anwar
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid