Refactor My Generic Repository To UoW Pattern

Completado Publicado Nov 5, 2014 Pagado a la entrega
Completado Pagado a la entrega

I am a student with a project I have been working on and I implemented it using a generic repository pattern but I keep having issues where my context is trying to update an entity but it is in the wrong state or something fails.

I am really stressed out because this project is very important to me but as a student learning I can't afford much money but I need help to fix this.

One of the issues I am trying to fix with a Unit of Work pattern is this exception:

The relationship between the two objects cannot be defined because they are attached to different ObjectContext objects.

Maybe I am wrong and a Unit Of Work pattern is not the issue, I need help and someone with knowledge of Entity Framework to look at my project and help me fix this.

I have attached the generic repository pattern code I am using, I can not post the whole project sorry.

.NET ASP.NET Programación en C# MVC Arquitectura de software

Nº del proyecto: #6692485

Sobre el proyecto

8 propuestas Proyecto remoto Activo Nov 7, 2014

Adjudicado a:

ahmedabdulm

Hi, Just wanted to let you know that I am now the software development manager of one of the best companies here in Egypt and one of my core responsibilities is to deliver quality software from end to end. Starting Más

$77 CAD en 1 día
(17 comentarios)
3.0

8 freelancers están ofertando un promedio de $68 por este trabajo

murtaza1981

Hi, Please feel free to discuss the project with me ........................................................................... Thanks, Murtaza

$100 CAD en 1 día
(13 comentarios)
4.7
RKYSP

Hi, I am an individual freelance, having more than 10yrs of exp in developing applications, window & web based, using .Net (C#.Net, Asp.Net (MVC), XML, WPF, WCF (Webservices) kendo ui, MySQL and SQL Server etc). Más

$100 CAD en 2 días
(15 comentarios)
4.1
truebe

Let me help you refactor your Repository Pattern and combine the Repository Pattern with the UOW Pattern in correct way, and also make it simple (KISS Principle).

$61 CAD en 2 días
(0 comentarios)
0.0
vinod150987

Hi I am Vinod Kumar. I am working as Senior Software Developer in IT company. I have 4 + years experience in ASP.NET MVC with C#, Entity Framework and SQL Server 2012. I am well known in unit of work pattern wit Más

$35 CAD en 3 días
(0 comentarios)
0.0
neburnz

As I see your implementation is good, according the Repository pattern. You need a helper class to manage associations between transient and persisted instances. About the context you can use the approach for Context b Más

$45 CAD en 5 días
(0 comentarios)
0.0
t1t2t3

Dear, Greetings from PeshTec & Software Solution, We take this opportunity to introduce our Company and unique proposition for you. I am the CEO of PeshTec And Software Solution, form Hayatabad Peshawar Pak Más

$45 CAD en 2 días
(0 comentarios)
0.0