/// <summary> /// 通过ID获取图书信息 /// </summary> public Getallbookinfo() { this.bookInfoAccess = DALFactory.CreateBookInfoAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = false; this.IsolationLevel = IsolationLevel.ReadCommitted; }
/// <summary> /// 通过ID获取图书信息 /// </summary> /// <param name="booknaem">查询关键字</param> public Querybookbyname(string booknaem) { this.bookName = booknaem; this.bookInfoAccess = DALFactory.CreateBookInfoAccess(); this.Connection = Better517Na.LibrayMgr.ConnectionFactory.ConnectionFactory.CreateConnect(); this.IsBeginTransaction = false; this.IsolationLevel = IsolationLevel.ReadCommitted; }