private static void ExecuteNormal(RioValleyChiliDataContext context, string[] args) { DisplayStartup(); while (true) { DisplaySeedingOptions(); var keyInfo = Console.ReadKey(); Console.WriteLine("\n...................................................\n"); if (keyInfo.Key == ConsoleKey.Q || keyInfo.Key == ConsoleKey.Enter) { break; } var initializationAdapter = GetDataContextInitializationAdapter(keyInfo.KeyChar); ExecuteInitialization(context, initializationAdapter, args); DisplayLogFileMenu(); } Console.Write("\n\n** Godspeed You! Black Emperor **"); Console.Read(); }
public PackScheduleEntityObjectMother(RioAccessSQLEntities oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { _newContextHelper = new NewContextHelper(newContext); _packagingHelper = new PackSchedulePackagingHelper(oldContext.CreateObjectSet <tblPackaging>().ToList()); _notebookFactory = NotebookFactory.Create(newContext); _serializedData = new SerializedData(oldContext); }
public static void ObtainData(RioValleyChiliDataContext newContext) { if (newContext == null) { throw new ArgumentNullException("newContext"); } Employees = newContext.Employees.ToList(); }
public PackagingProductEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContext = newContext; }
private NotebookFactory(RioValleyChiliDataContext context) { if (context == null) { throw new ArgumentNullException("context"); } _context = context; }
public CustomerProductCodeMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContextHelper = new NewContextHelper(newContext); }
public LotEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContextHelper = new NewContextHelper(newContext); _createChileLotHelper = new CreateChileLotHelper(this, oldContext.CreateObjectSet <tblLotStatu>()); }
public LotAllowancesEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContextHelper = new NewContextHelper(newContext); }
public CompanyAndContactsMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback = null) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContext = newContext; _newContextHelper = new NewContextHelper(_newContext); }
public NewContextHelper(RioValleyChiliDataContext newContext) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContext = newContext; _noTracking = false; }
public ProductionScheduleEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContextHelper = new NewContextHelper(newContext); _loadCount = new MotherLoadCount <EntityTypes>(); }
protected LotInventoryEntityObjectMotherBase(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } NewContextHelper = new NewContextHelper(newContext); }
public InventoryAdjustmentsMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContextHelper = new NewContextHelper(newContext); _notebookFactory = NotebookFactory.Create(newContext); }
public PackScheduleKeyHelper(RioValleyChiliDataContext newContext) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _keys = newContext.Set <PackSchedule>().Select(p => new PackScheduleKey { PackScheduleKey_DateCreated = p.DateCreated, PackScheduleKey_DateSequence = p.SequentialNumber, PackSchID = p.PackSchID }).ToDictionary(p => p.PackSchID, p => p); }
public ProductionBatchEntityObjectMother(RioAccessSQLEntities oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { if (newContext == null) { throw new ArgumentNullException("newContext"); } _newContextHelper = new NewContextHelper(newContext); _serializedData = new SerializedData(oldContext); _productionResultHelper = new ProductionResultHelper(_newContextHelper, _serializedData); _pickedInventoryItemLocationHelper = new PickedInventoryItemLocationHelper(_newContextHelper); _notebookFactory = NotebookFactory.Create(newContext); }
void IDisposable.Dispose() { if (_oldContext != null) { _oldContext.Dispose(); _oldContext = null; } if (_newContext != null) { _newContext.Dispose(); _newContext = null; } }
private static void ExecuteInitialization(RioValleyChiliDataContext context, IDataContextInitializationAdapter <RioValleyChiliDataContext> initializationAdapter, string[] args) { ContextsHelper.ConsoleOutputSettings(); RVCDataLoadLoggerGate.RVCDataLoadLogger = RVCDataLoadLogger.GetDataLoadLogger(ExtractArgs(args, "-LogFolder ")); if (context.Database.Exists()) { Console.WriteLine("Preserving old data."); PreservedData.ObtainData(context); Console.WriteLine("Deleting existing database."); context.Database.Delete(); } Console.WriteLine("Initializing database."); var stopwatch = new Stopwatch(); stopwatch.Start(); DataLoadResult.Success = true; initializationAdapter.InitializeDataContext(ref context); new RVCDataLoadResultObtainer().SetDataLoadResult(new RVCDataLoadResultObtainer.LoadResult { Success = DataLoadResult.Success, RanToCompletion = true, TimeStamp = DateTime.Now }); stopwatch.Stop(); Console.WriteLine("\n****************************************"); Console.WriteLine("DATA LOAD COMPLETE"); Console.WriteLine("Success: {0}", DataLoadResult.Success); Console.WriteLine("Total Run Time: {0:g}", stopwatch.Elapsed); Console.WriteLine("****************************************\n"); if (RVCDataLoadLoggerGate.RVCDataLoadLogger != null) { RVCDataLoadLoggerGate.RVCDataLoadLogger.WriteLogSummary(); } }
public CustomerProductSpecMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { _newContextHelper = new NewContextHelper(newContext); }
public PackagingLotInventoryItemEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, newContext, loggingCallback) { }
public ChileMaterialsReceivedEntityMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { _newContext = newContext; _newContextHelper = new NewContextHelper(_newContext); }
public SalesQuoteEntityObjectMother(RioValleyChiliDataContext newContext, ObjectContext oldContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { _newContextHelper = new NewContextHelper(newContext); }
public MillAndWetdownMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> analyzerCallback) : base(oldContext, analyzerCallback) { _newContextHelper = new NewContextHelper(newContext); }
private void ResetContexts() { ((IDisposable)this).Dispose(); _newContext = new RioValleyChiliDataContext(); _oldContext = new RioAccessSQLEntities(); }
public ContactEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { _newContext = newContext; }
public TreatmentOrdersMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback = null) : base(oldContext, newContext, loggingCallback) { }
private static void ExecuteSilently(RioValleyChiliDataContext context, string[] args) { var initializationAdapter = GetDataContextInitializationAdapter(args[0][0]); ExecuteInitialization(context, initializationAdapter, args); }
public static NotebookFactory Create(RioValleyChiliDataContext context) { return(_instance ?? (_instance = NewInstance(context))); }
public LotHistoryEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { _newContextHelper = new NewContextHelper(newContext); }
public ContractEntityObjectMother(ObjectContext oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback) : base(oldContext, loggingCallback) { _newContextHelper = new NewContextHelper(newContext); _notebookFactory = NotebookFactory.Create(newContext); }
private static NotebookFactory NewInstance(RioValleyChiliDataContext context) { return(new NotebookFactory(context)); }