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

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