Пример #1
0
 public OrmService(string dbc)
 {
     //LogManager.LogFactory = new ConsoleLogFactory();
     //SqlServerOrmLiteDialectProvider.Instance);//IOrmLiteDialectProvider
     //dbFactory.DialectProvider = new
     //IDbConnection dbConn = dbFactory.OpenDbConnection();
     //IDbCommand dbCmd = dbConn.CreateCommand();
     //dbConn.DropTable<Employee>();
     //dbConn.CreateTable<Employee>();
     //service = dbFactory.OpenDbConnection();
     //this.db = connector.GetDb();
     this.db = OraConnector.GetDb(dbc);
 }
Пример #2
0
 private static IDbConnection open(string connstr)
 {
     return(OraConnector.GetDb(connstr));
 }