public PluginDataKey(Profiler.PluginData pluginData) { ClassId = Guid.Parse(pluginData.ClassID); Name = pluginData.Name; _hashCode = ClassId.GetHashCode(); }
private void InsertGeneralPluginData(Profiler.PluginData pluginData) { var entity = new Entity.tDVDxPluginData() { tDVD = _currentDVDEntity, PluginData = GetPluginData(pluginData.Any), tPluginData = _baseData.PluginData[new PluginDataKey(pluginData)], }; _context.tDVDxPluginData.Add(entity); }
private void InsertPluginData(Profiler.PluginData pluginData) { switch (pluginData.ClassID) { case (EPI.ClassGuid.ClassIDBraced): { (new EnhancePurchaseInfoInserter(_context, _currentDVDEntity, pluginData)).Insert(); break; } case (EN.ClassGuid.ClassIDBraced): { (new EnhancedNotesInserter(_context, _currentDVDEntity, pluginData)).Insert(); break; } case (ET.ClassGuid.ClassIDBraced): { (new EnhancedTitlesInserter(_context, _currentDVDEntity, pluginData)).Insert(); break; } case (DDI.ClassGuid.ClassIDBraced): { (new DigitalDownloadInfoInserter(_context, _currentDVDEntity, pluginData)).Insert(); break; } case (EF.ClassGuid.ClassIDBraced): { (new EnhancedFeaturesInserter(_context, _currentDVDEntity, pluginData)).Insert(); break; } default: { InsertGeneralPluginData(pluginData); break; } } }
public EnhancedNotesInserter(Entity.CollectionEntities context, Entity.tDVD currentDVDEntity, Profiler.PluginData pluginData) { _context = context; _currentDVDEntity = currentDVDEntity; _pluginData = pluginData; }
public DigitalDownloadInfoInserter(Entity.CollectionEntities context, Entity.tDVD currentDVDEntity, Profiler.PluginData pluginData) { _context = context; _currentDVDEntity = currentDVDEntity; _pluginData = pluginData; }