Exemplo n.º 1
0
        private static void PersistenceIdentityDemo()
        {
            Console.WriteLine("\nPersistence Identity Demo\n");

            IIdentityUnitOfWork unitOfWork = DIHelper.DIManager.GetService <IIdentityUnitOfWork>();

            Console.WriteLine(unitOfWork.GetType().FullName + " with " + unitOfWork.DBMS.ToString() + "\n");

            PersistenceIdentityData <Role>(unitOfWork);
            PersistenceIdentityData <UserClaim>(unitOfWork);
            PersistenceIdentityData <UserLogin>(unitOfWork);
            PersistenceIdentityData <UserRole>(unitOfWork);
            PersistenceIdentityData <User>(unitOfWork);
        }