Пример #1
0
 public override void ApplyForAllTablePairs(ITransaction tran, IPairTableFunction func)
 {
     func.Apply(AuthUserDatabase.Temp(tran).RolesTable, AuthUserDatabase.Get.RolesTable);
     func.Apply(AuthUserDatabase.Temp(tran).PermissionRolesTable, AuthUserDatabase.Get.PermissionRolesTable);
     func.Apply(AuthUserDatabase.Temp(tran).AuthUsersTable, AuthUserDatabase.Get.AuthUsersTable);
     func.Apply(AuthUserDatabase.Temp(tran).AuthUserRolesTable, AuthUserDatabase.Get.AuthUserRolesTable);
     func.Apply(AuthUserDatabase.Temp(tran).AdminLogsTable, AuthUserDatabase.Get.AdminLogsTable);
     func.Apply(AuthUserDatabase.Temp(tran).DomainEventsTable, AuthUserDatabase.Get.DomainEventsTable);
 }
Пример #2
0
 public override List <DomainEvent> TempDomainEventsTable(ITransaction transaction)
 {
     return(AuthUserDatabase.Temp(transaction).DomainEventsTable);
 }
        private void StoreTestRole(long id)
        {
            var role = BuildTestRole(id);

            _unitOfWork.Store(role, tran => AuthUserDatabase.Temp(tran).RolesTable);
        }