Exemplo n.º 1
0
        public CrEntityBus(tpc.h h, DbType dbType = DbType.sqlserver) : this()
        {
            this.h      = h;
            this.DbType = dbType;

            switch (this.DbType)
            {
            case DbType.sqlserver:
                TileLabel("");
                break;

            case DbType.mysql:
                TileLabelMySql("");
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
        public TakeFromTemplate(tpc.h h, DbType dbType = DbType.sqlserver) : this()
        {
            this.h      = h;
            this.DbType = dbType;

            switch (this.DbType)
            {
            case DbType.sqlserver:
                TileLabel("");
                break;

            case DbType.mysql:
                connStr = System.Configuration.ConfigurationManager.AppSettings["mysql"];
                TileLabelMySql("");
                break;

            default:
                break;
            }
        }