Ejemplo n.º 1
0
        public static ICommand Create(Provider.Type provider)
        {
            ICommand command = null;

            switch (provider)
            {
                case Provider.Type.MySQL:
                    {
                        command = new CommandSQL();
                        break;
                    }
                case Provider.Type.MongoDB:
                    {
                        MongoCustomSerializer();
                        command = new CommandMongo();
                        break;
                    }
            }

            return command;
        }
Ejemplo n.º 2
0
        public static ICommand Create(Provider.Type provider)
        {
            ICommand command = null;

            switch (provider)
            {
            case Provider.Type.MySQL:
            {
                command = new CommandSQL();
                break;
            }

            case Provider.Type.MongoDB:
            {
                MongoCustomSerializer();
                command = new CommandMongo();
                break;
            }
            }

            return(command);
        }