Esempio n. 1
0
        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));
            //};
        }
Esempio n. 2
0
 public DepartmentCallEmailsRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 3
0
 public UserProfilesRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 4
0
 public ShiftsRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 5
0
 public DepartmentSettingsRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 6
0
 public TrainingRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 7
0
 public PaymentRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 8
0
 public CallTypesRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 9
0
 public UnitStatesRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
 public ScheduledTaskLogsRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 11
0
 public GenericDataRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 12
0
 public MessageRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 13
0
 public DepartmentNotificationRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 14
0
 public PushUriRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
 public DepartmentGroupMembersRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }
Esempio n. 16
0
 public CalendarItemsRepository(DataContext context, IISolationLevel isolationLevel)
     : base(context, isolationLevel)
 {
 }