public void DiscardChanges() { if (Context == null) { return; } Context.Dispose(); Context = null; }
public DatabaseUnitOfWork(IUserRepository userRepository, IDnaRepository dnaRepository, IDnaClientRepository dnaClientRepository, ISectionRepository sectionRepository, DesignAutomatorContext context) { Context = context; UserRepository = userRepository; DnaRepository = dnaRepository; DnaClientRepository = dnaClientRepository; SectionRepository = sectionRepository; }
public DnaClientRepository(DesignAutomatorContext context) : base(context) { }
public GenericRepository(DesignAutomatorContext context) : base(context) { }
public GenericUnitOfWork(IGenericRepository <TEntity> genericRepository, DesignAutomatorContext context) { Context = context; GenericRepository = genericRepository; }
public UserRepository(DesignAutomatorContext context) : base(context) { }
public SectionRepository(DesignAutomatorContext context) : base(context) { }