Exemplo 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;
        }
        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);
        }