Base solution for your next web application

Activities of "hole7"

Finally, I found the way to solve this.

var queryUsers = _userRepository.GetAll().Include(u => u.Roles)
                                            .OrderBy(input.Sorting)
                                            .PageBy(input);

            var items = (from u in queryUsers
                         join ur in queryUsers.SelectMany(x => x.Roles) on u.Id equals ur.UserId
                         join r in _roleRepository.GetAll() on ur.RoleId equals r.Id
                         group new { u, ur, r } by new
                         {
                             u.Id,
                             u.UserName,
                             u.Name,
                             u.Surname,
                             u.EmailAddress,
                             u.IsEmailConfirmed,
                             u.IsActive,
                             u.LastLoginTime,
                             u.CreationTime
                         } into g
                         select new UserDto()
                         {
                             Id = g.Key.Id,
                             UserName = g.Key.UserName,
                             Name = g.Key.Name,
                             Surname = g.Key.Surname,
                             EmailAddress = g.Key.EmailAddress,
                             IsEmailConfirmed = g.Key.IsEmailConfirmed,
                             IsActive = g.Key.IsActive,
                             LastLoginTime = g.Key.LastLoginTime,
                             CreationTime = g.Key.CreationTime,
                             Roles = g.Select(x => new UserRoleDto()
                             {
                                 RoleId = x.r.Id,
                                 RoleName = x.r.DisplayName
                             }).ToList()
                         }).ToList();

Hi ismcagdas,

Thanks for your response!

I checked CreatorUser and its value is null. I don't know why because I can see value from database as image below

[http://pasteboard.co/217Rxg5p.png])

Thanks & regards, Ho Le

Hi ismcagdas,

As you said, I looked my code and you're right. That was my misunderstanding. I logged in with host user (generated with start-up template) but comment user was tenant admin user. Thanks for your great help. I think I have to take more time on Multi-Tenancy document.

p/s: This framework is awesome. I really like it

any help, please!

hi,

Thanks for your advice!

I found an exception:

"ERROR 2016-03-15 22:16:41,078 [165 ] lers.Filters.AbpExceptionFilterAttribute - Only one complex type allowed as argument to a web api controller action. But SaveLocalizedValue contains more than one! Abp.AbpException: Only one complex type allowed as argument to a web api controller action. But SaveLocalizedValue contains more than one!"

So, with that logs I think I can fix it. But, what changed with the new version? because old version worked fine.

Thanks ismcagdas so much!

hi ismcagdas ,

Give me another question!

I just use the same configuration as startup template for Hangfire config but it throw an exception as image below

[http://pasteboard.co/2hTvYmyE.png])

Thanks

Answer

Hi,

You can define your custom menu definition:

var leftMenu = new MenuDefinition("LeftMenu", new FixedLocalizableString("LeftMenu"));

then add items to leftMenu.

And add to menu context: context.Manager.Menus.Add("LeftMenu", leftMenu);

Use in js: vm.menu = abp.nav.menus.LeftMenu;

Hi ismcagdas,

I'm using log4net 1.2.10.0 and Hangfire.Core 1.5.3.0.

For SaveLocalizeValue method, I fixed it.

Thanks

Hi,

No problems

I did install Hangfire.SqlServer (1.5.3.0) and setting dependency on AbpHangireModule too, but don't know why it's not working.

Let me try to reinstall it :) hope somehow it works :)

Thanks a lot

Hi hikalkan,

I got it.

Thank you very much :)

Showing 1 to 10 of 14 entries