Exemple #1
0
        private static void PersistenceIdentityData <TEntity>(IIdentityUnitOfWork unitOfWork)
            where TEntity : ZDataBase
        {
            IGenericRepository <TEntity> repository = unitOfWork.GetRepository <TEntity>();
            TEntity entity = repository.Query().FirstOrDefault();

            Console.WriteLine(typeof(TEntity).Name + ": " + repository.CountAll());
        }