public string GetFileName(DBObjType type, PathSetting cs)
        {
            switch (type)
            {
            case DBObjType.Table:
                return(cs.Tables);

            case DBObjType.View:
                return(cs.Views);

            case DBObjType.Trig:
                return(cs.Trigs);

            case DBObjType.Proc:
                return(cs.Procs);

            case DBObjType.Func:
                return(cs.Funcs);

            case DBObjType.DBSetting:
                return(cs.DBSetting);

            default:
                throw new Exception("未知的(DBObjType)");
            }
        }
Exemple #2
0
 public void SetPathSetting(PathSetting cs, string targ)
 {
     cs.Tables    = targ + pathCs.Tables;
     cs.Funcs     = targ + pathCs.Funcs;
     cs.Procs     = targ + pathCs.Procs;
     cs.Trigs     = targ + pathCs.Trigs;
     cs.Views     = targ + pathCs.Views;
     cs.DBSetting = targ + pathCs.DBSetting;
 }