Beispiel #1
0
        public bool UpdateScore(List <AssignmentScore> scoreList)
        {
            foreach (var score in scoreList)
            {
                _ScoreDao.Delete(score);
                _ScoreDao.Insert(score);
            }

            return(true);
        }
 /// <summary>
 /// Does the delete the entity from the database.
 /// </summary>
 /// <param name="entity">The entity to delete</param>
 protected virtual void DoDelete(U entity)
 {
     _genericDao.Delete <U>(entity);
 }
 /// <summary>
 /// Does the delete the entity from the database.
 /// </summary>
 /// <param name="entity">The entity to delete</param>
 protected virtual void DoDelete(DeletionDto deletionDto, U entity)
 {
     _genericDao.Delete <U>(entity);
 }
Beispiel #4
0
        public void DeleteTest()
        {
            var userProfileDao = new GenericDao <UserProfile>();

            Assert.IsTrue(userProfileDao.Delete(_userProfile));
        }