Exemple #1
0
        public virtual void GetObject <E>(IDbConnection con) where E : SimpleObject
        {
            SimpleDAO <E> dao  = new SimpleDAO <E>();
            List <E>      list = dao.SimpleSelectList(con, (E)this);

            if (list.Count > 0)
            {
            }
        }
Exemple #2
0
        public virtual void Delete(IDbConnection con)
        {
            SimpleDAO <SimpleObject> dao = new SimpleDAO <SimpleObject>();

            dao.SimpleDelete(con, this);
        }
Exemple #3
0
        public virtual SimpleObject Insert(IDbConnection con)
        {
            SimpleDAO <SimpleObject> dao = new SimpleDAO <SimpleObject>();

            return(dao.SimpleInsert(con, this));
        }
Exemple #4
0
        public virtual List <E> GetList <E>(IDbConnection con)  where E : SimpleObject
        {
            SimpleDAO <E> dao = new SimpleDAO <E>();

            return(dao.SimpleSelectList(con, (E)this));
        }