public RepositoryBase(IDbContext context, IISolationLevel isolationLevel) { _isolationLevel = isolationLevel; this.context = ((IObjectContextAdapter)context).ObjectContext; ObjectSet <T> set = this.context.CreateObjectSet <T>(); set.MergeOption = MergeOption.OverwriteChanges; IsSqlCe = context.IsSqlCe(); if (!IsSqlCe) { this.context.CommandTimeout = 300; } db = ((DbContext)context).Database; dbContext = ((DbContext)context); entities = set; // Uncomment the below if you want to see all hell break loose! Do not deploy to prod. -SJ //this.context.ObjectStateManager.ObjectStateManagerChanged += (sender, e) => //{ // Trace.WriteLine(string.Format("{0}, {1}", e.Action, e.Element)); //}; }
public DepartmentCallEmailsRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public UserProfilesRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public ShiftsRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public DepartmentSettingsRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public TrainingRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public PaymentRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public CallTypesRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public UnitStatesRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public ScheduledTaskLogsRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public GenericDataRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public MessageRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public DepartmentNotificationRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public PushUriRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public DepartmentGroupMembersRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }
public CalendarItemsRepository(DataContext context, IISolationLevel isolationLevel) : base(context, isolationLevel) { }