﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mysoft.Data
{
    public class SqlResolveFacory
    {

        public static ISqlResolve CreateSqlResolve()
        {
            switch (DataBaseSettings.DataBaseType)
            {
                case DataBaseType.SqlServer:
                    return new SqlServerResolve();
                case DataBaseType.MySql:
                    return new MySqlResolve();
                default:
                    throw new NotSupportedException();
            }
        }
    }
}
