Ejemplo n.º 1
0
        public static ISqlCommandConsultant CreateCommander(SqlType type, ICommandConfiguration commandConfiguration)
        {
            ISqlCommandConsultant oResult = null;

            switch (type)
            {
            case SqlType.SqlServer:
                oResult = new SqlServerConsultant()
                {
                    CommandConfiguration = commandConfiguration
                };
                break;

            default:
                break;
            }

            return(oResult);
        }
Ejemplo n.º 2
0
        public static ISqlQueryConsultant CreateQuerier(SqlType type, IQueryConfiguration queryConfiguration)
        {
            ISqlQueryConsultant oResult = null;

            switch (type)
            {
            case SqlType.SqlServer:
                oResult = new SqlServerConsultant()
                {
                    QueryConfiguration = queryConfiguration
                };
                break;

            default:
                break;
            }

            return(oResult);
        }