Пример #1
0
 public static IDbo Factory( )
 {
     IDbo idb = null;
     switch (Utils.DataBaseType)
     {
         case DataBaseType.Sql2000:
             idb = new Generate2000Sql();
             break;
         case DataBaseType.Sql2005:
             idb = new Generate2005Sql();
             break;
         case DataBaseType.Sql2008:
             idb = new Generate2008Sql();
             break;
         default:
             break;
     }
     return idb;
 }
Пример #2
0
 public static IDbo Factory(DbSetting dbSetting)
 {
     IDbo idb = null;
     idb = new Generate2008Sql(dbSetting);
     return idb;
 }