Exemplo n.º 1
0
 public DbContext(DbContextBuilder builder)
 {
     Connection    = builder.Connection;
     _xmlResovle   = builder.XmlResovle;
     _typeMapper   = builder.TypeMapper ?? new TypeMapper();
     DbContextType = builder.DbContextType;
 }
Exemplo n.º 2
0
        protected DbContext()
        {
            var builder = OnConfiguring(new DbContextBuilder());

            Connection    = builder.Connection;
            _xmlResovle   = builder.XmlResovle;
            _typeMapper   = builder.TypeMapper ?? new TypeMapper();
            DbContextType = builder.DbContextType;
        }
Exemplo n.º 3
0
 static SqlDbContext()
 {
     resovle = new XmlResovle();
     resovle.Load(@"E:\SqlBatis\SqlBatis.Test", "*.xml");
 }