예제 #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);
        }
예제 #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);
        }