Entity Framework Tutorial – Simple Repository Pattern C#

Entity Framework Tutorial - Simple Repository Pattern C#

This video demonstrates how to set up Entity Framework using a simple generic repository pattern. Please share this video, follow me on twitter @adavir.
Video Tutorial Rating: 4 / 5

Don’t forget to check out our other video tutorials or share this video with a friend.

1 Star2 Stars3 Stars4 Stars5 Stars 0 votes
Loading... 4,610 views





12 responses to “Entity Framework Tutorial – Simple Repository Pattern C#”

  1. Paul Tierney (Adavir Ltd) says:

    egenesis1, by having the IRepository signature outside the repository
    project, it gives use a further level of abstraction. I plan to demonstrate
    this in future videos.

    Doing so, I can you use the one IRepository signature for multiple
    repositories existing in different projects, so if I added a OData or a
    MongoDB repository (as separate projects) I could implement the same
    signature on these projects. 

  2. Paul Tierney (Adavir Ltd) says:

    Thanks for the feedback. you can get the source code from here
    http://adavir.ie/2014/08/02/a-simple-generic-repository-pattern-for-entity-framework/
    .

    EF6 has native support for transactions, which you could easily work into
    the BlogRepository. Might do a video on that sometime in the near future.

    http://msdn.microsoft.com/en-us/data/dn456843.aspx

    Paul

  3. Vyache Kan says:

    How do you handle Serialization with Lazy Loading?

  4. Kasi Reddy Pondugula says:

    Hi Paul….. Excellent Video
    Can you do a sample on Entity Framework Database first in WCF

  5. egenesis1 says:

    Just curious why you added the edmx file in the a.blog.data.repository
    rather than a.blog.data? I thought that repository folder should have is
    the repository interface and the implementing repository class? Sorry but
    that is what I have been doing on my MVC projects. Trying to find out if
    Ali misunderstood something or it’s just a personal preference. Good
    tutorial with good implementation of generics however.

  6. VArsovski10 says:

    I envy you sir how you didn’t end up having problems with the dreaded
    project dependencies and references (even worse is that once you make a
    mistake adding a proj. dependency – you can’t fix it.. :/).. Or – you can ?
    – anyone able to help it ?

    Thx sir anyway :)

  7. rxdmd1 says:

    Very nice tutorial. Do you have the source code?

    How would you implement transactional processing for say an order with a
    main order and order detail and want to commit or rollback due to failure?

  8. Nandha Kumar says:

    Hi Paul, the video is simply awesome.
    Please keep posting you works, so that people like me can get a better
    insight on .Net stuffs. Thanks for your help

  9. Munkh-Yalalt Khadbaatar says:

    that was really awesome. how long have you been coding…

  10. Edgars Šturms says:

    Thank you for sharing your knowledge, great tutorial.

  11. BRETT SULLIVAN says:

    get juice rocked!!!!!!!!!!!!!!!!!!!!

  12. tmanoharc says:

    How to do joins with this approach?

Leave a Reply

Your email address will not be published. Required fields are marked *