Beispiel #1
0
        public List<BaseCommonObject> GetRelativesTypes()
        {
            List<BaseCommonObject> res = new List<BaseCommonObject>();

            string sql = "select * from RelativesTypes order by rel_type_name asc";

            _cmd = CreateCommand(sql);
            _DR = ExecuteDataReader(_cmd.ExecuteReader);

            while (_DR.Read())
            {
                BaseCommonObject item = new BaseCommonObject((int)_DR["rel_type_id"], _DR["rel_type_name"].ToString());
                res.Add(item);
            }
            _DR.Close();

            return res;
        }
Beispiel #2
0
        public virtual object Clone()
        {
            BaseCommonObject obj = new BaseCommonObject(this.Id, this.Name);

            return(obj);
        }
Beispiel #3
0
        public virtual object Clone()
        {
            BaseCommonObject obj = new BaseCommonObject(this.Id, this.Name);

            return obj;
        }