Пример #1
0
        protected internal ObjectDAL(DALManager pDALManager)
        {
            System.Diagnostics.Trace.WriteLine(this.GetType().ToString(), "CreateDAL");
            myDALManager = pDALManager;

            this.sqlDa        = new SqlDataAdapter();
            this.sqlSelect    = new SqlCommand();
            this.sqlSelectAll = new SqlCommand();
            this.sqlInsert    = new SqlCommand();
            this.sqlUpdate    = new SqlCommand();
            this.sqlDelete    = new SqlCommand();


            //
            // sqlDa
            //
            this.sqlDa.DeleteCommand = this.sqlDelete;
            this.sqlDa.UpdateCommand = this.sqlUpdate;
            this.sqlDa.InsertCommand = this.sqlInsert;
            this.sqlDa.SelectCommand = this.sqlSelect;
        }
Пример #2
0
 public virtual byte[] LoadByte()
 {
     return(DALManager.CompressData(Load()));
 }