コード例 #1
0
        public PluginDataKey(Profiler.PluginData pluginData)
        {
            ClassId = Guid.Parse(pluginData.ClassID);

            Name = pluginData.Name;

            _hashCode = ClassId.GetHashCode();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
            }
            }
        }
コード例 #4
0
 public EnhancedNotesInserter(Entity.CollectionEntities context, Entity.tDVD currentDVDEntity, Profiler.PluginData pluginData)
 {
     _context          = context;
     _currentDVDEntity = currentDVDEntity;
     _pluginData       = pluginData;
 }
コード例 #5
0
 public DigitalDownloadInfoInserter(Entity.CollectionEntities context, Entity.tDVD currentDVDEntity, Profiler.PluginData pluginData)
 {
     _context          = context;
     _currentDVDEntity = currentDVDEntity;
     _pluginData       = pluginData;
 }