S
shapper
Hello,
I have the following:
using System;
using System.Data.Objects;
public class MyAppContext : ObjectContext, IUnitOfWork {
public void Commit() {
SaveChanges();
} // Commit
public void Rollback() {
Dispose();
} // Rollback
}
}
I get an error on MyAppContext:
'System.Data.Objects.ObjectContext' does not contain a constructor
that takes '0' arguments
What am I missing?
My IUnitOfWork is as follows:
public interface IUnitOfWork {
void Commit();
void Rollback();
} // IUnitOfWork
Thank You,
Miguel
I have the following:
using System;
using System.Data.Objects;
public class MyAppContext : ObjectContext, IUnitOfWork {
public void Commit() {
SaveChanges();
} // Commit
public void Rollback() {
Dispose();
} // Rollback
}
}
I get an error on MyAppContext:
'System.Data.Objects.ObjectContext' does not contain a constructor
that takes '0' arguments
What am I missing?
My IUnitOfWork is as follows:
public interface IUnitOfWork {
void Commit();
void Rollback();
} // IUnitOfWork
Thank You,
Miguel