Example #1
0
        public EntityCollection <T> SelectAll(bool useAop)
        {
            EntityCollection <T> result = new EntityCollection <T>(this);

            result.IsReadOnly = !useAop;
            using (DbConnection conn = _DataBase.CreateConnection())
            {
                conn.ConnectionString = _strConn;
                List <T> data = SqlMap <T> .GetAllData(conn, useAop, _DataBase);

                result.Add(data);
            }
            return(result);
        }