예제 #1
0
        public DbContext(DbConnection dbConnection)
        {
            this.dbConfiguration = DbConfiguration.Configure(dbConnection);

            this.database = new Database(this.dbConfiguration);
        }
예제 #2
0
파일: Database.cs 프로젝트: daywrite/EApp
        public Database(DbConfiguration dbConfiguration)
            : this()
        {
            this.dbConfiguration = dbConfiguration;

            this.parameterCache = new DbParameterCache(this);
        }
예제 #3
0
        public DbContext(string connectionStringSectionName)
        {
            this.dbConfiguration = DbConfiguration.Configure(connectionStringSectionName);

            this.database = new Database(this.dbConfiguration);
        }