Exemplo n.º 1
0
 public bool Update(TUpdateForm form)
 {
     return(DaoHelper.UpdateSimpleEntity <TEntity, TQueryForm, TUpdateForm>(Mapper, form));
 }
Exemplo n.º 2
0
 public TEntity QuerySingle(TQueryForm form)
 {
     return(DaoHelper.QuerySingle <TEntity, TQueryForm>(Mapper, form));
 }
Exemplo n.º 3
0
        public bool Delete(TQueryForm form)
        {
            string tableName = typeof(TEntity).Name;

            return(DaoHelper.Delete <TQueryForm>(Mapper, tableName, form));
        }
Exemplo n.º 4
0
 public List <TEntity> Query(TQueryForm form)
 {
     return(DaoHelper.Query <TEntity, TQueryForm>(Mapper, form, true));
 }
Exemplo n.º 5
0
 public TEntity Add(TEntity entity)
 {
     return(DaoHelper.Add <TEntity>(Mapper, entity));
 }
Exemplo n.º 6
0
 public int Count(TQueryForm form)
 {
     return(DaoHelper.GetCount <TQueryForm, TEntity>(Mapper, form));
 }
Exemplo n.º 7
0
 public int Count(string statementName, TQueryForm form)
 {
     return(DaoHelper.GetCount <TQueryForm, TEntity>(Mapper, form, statementName, true));
 }