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) { } }
public virtual void Delete(IDbConnection con) { SimpleDAO <SimpleObject> dao = new SimpleDAO <SimpleObject>(); dao.SimpleDelete(con, this); }
public virtual SimpleObject Insert(IDbConnection con) { SimpleDAO <SimpleObject> dao = new SimpleDAO <SimpleObject>(); return(dao.SimpleInsert(con, this)); }
public virtual List <E> GetList <E>(IDbConnection con) where E : SimpleObject { SimpleDAO <E> dao = new SimpleDAO <E>(); return(dao.SimpleSelectList(con, (E)this)); }