コード例 #1
0
ファイル: GenericCell.cs プロジェクト: sefira/NeuralMovieQAQ
        public void SaveGenericCell(Trinity.Storage.LocalMemoryStorage storage, CellAccessOptions writeAheadLogOptions, long cellId, ICell cell)
        {
            switch ((CellType)cell.CellType)
            {
            case CellType.Movie:
                storage.SaveMovie(writeAheadLogOptions, cellId, (Movie)cell);
                break;

            case CellType.Celebrity:
                storage.SaveCelebrity(writeAheadLogOptions, cellId, (Celebrity)cell);
                break;
            }
        }
コード例 #2
0
ファイル: GenericCell.cs プロジェクト: sefira/NeuralMovieQAQ
        public void SaveGenericCell(Trinity.Storage.LocalMemoryStorage storage, long cellId, ICell cell)
        {
            switch ((CellType)cell.CellType)
            {
            case CellType.Movie:
                storage.SaveMovie(cellId, (Movie)cell);
                break;

            case CellType.Celebrity:
                storage.SaveCelebrity(cellId, (Celebrity)cell);
                break;
            }
        }