Exemple #1
0
        public bool Delete(T dto)
        {
            var success = DaoContext.GetDao <T>().Delete(dto);

            return(success);
        }
Exemple #2
0
        public bool Update(T dto, string[] fields)
        {
            var success = DaoContext.GetDao <T>().Update(dto, fields);

            return(success);
        }
Exemple #3
0
        public T InsertAndGet(T dto)
        {
            var value = DaoContext.GetDao <T>().InsertAndGet(dto);

            return(value);
        }
Exemple #4
0
        public bool Insert(T dto)
        {
            var success = DaoContext.GetDao <T>().Insert(dto);

            return(success);
        }
Exemple #5
0
        public T FindByUniqueID <V>(string fieldName, V fieldValue)
        {
            var value = DaoContext.GetDao <T>().Find.ByUniqueID(fieldName, fieldValue);

            return(value);
        }
Exemple #6
0
        public T FindByID(string id)
        {
            var value = DaoContext.GetDao <T>().Find.ByID(id);

            return(value);
        }