示例#1
0
文件: ENSubject.cs 项目: rlm33/svn
        public ENSubject Read(int idSubject)
        {
            cad = new CADSubject();
            ENSubject ret = new ENSubject();

            List <object> param = new List <object>();

            param.Add((object)idSubject);

            ret.FromRow(cad.Select(param));

            return(ret);
        }
示例#2
0
文件: ENSubject.cs 项目: rlm33/svn
        public List <ENSubject> Filter(string where)
        {
            List <ENSubject> ret   = new List <ENSubject>();
            DataTable        table = cad.SelectWhere(where);

            try
            {
                foreach (DataRow row in table.Rows)
                {
                    ENSubject course = new ENSubject();
                    course.FromRow(row);
                    ret.Add(course);
                }
                return(ret);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#3
0
文件: ENSubject.cs 项目: rlm33/svn
        public virtual List <ENSubject> ReadAll()
        {
            List <ENSubject> ret   = new List <ENSubject>();
            DataTable        table = cad.SelectAll();

            try
            {
                foreach (DataRow row in table.Rows)
                {
                    ENSubject course = new ENSubject();
                    course.FromRow(row);
                    ret.Add(course);
                }
                return(ret);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#4
0
        public virtual List<ENSubject> ReadAll()
        {
            List<ENSubject> ret = new List<ENSubject>();
            DataTable table = cad.SelectAll();

            try
            {

                foreach (DataRow row in table.Rows)
                {
                    ENSubject course = new ENSubject();
                    course.FromRow(row);
                    ret.Add(course);

                }
                return ret;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#5
0
        public ENSubject Read(int idSubject)
        {
            cad = new CADSubject();
                ENSubject ret = new ENSubject();

                List<object> param = new List<object>();
                param.Add((object)idSubject);

                ret.FromRow(cad.Select(param));

                return ret;
        }
示例#6
0
        public List<ENSubject> Filter(string where)
        {
            List<ENSubject> ret = new List<ENSubject>();
            DataTable table = cad.SelectWhere(where);

            try
            {

                foreach (DataRow row in table.Rows)
                {
                    ENSubject course = new ENSubject();
                    course.FromRow(row);
                    ret.Add(course);

                }
                return ret;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }