Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "rattlehub"

I have a class called Address. I want to track changes with EntityHistory but I want to not log all the objects. For example is it possible to track changes on certain objects, for example, exclude CreatorUserId etc. It seems I can only add selectors on the class. Configuration.EntityHistory.Selectors.Add("Address", typeof(Address));

Take the method protected virtual async Task CreateUserAsync(CreateOrUpdateUserInput input)

This returns 200. Is it possible without creating a controller in a service inheriting from ApplicationService to return 201 instead of 200. The services don't follow the correct http status codes as defined here. <a class="postlink" href="http://www.restapitutorial.com/httpstatuscodes.html">http://www.restapitutorial.com/httpstatuscodes.html</a>

Question

When a user tries to activate there email we have a issue where user.EmailConfirmationCode in the ActivateEmail service always returns null calling the user as follows ( var user = await UserManager.GetUserByIdAsync(input.UserId); ), even though i can see the record in the db for the specified userid

Even if i restart the app, its always null so not sure how to solve this.

I have logged in to the portal and it works fine but i have enabled the Identity Server to test the console app but keep getting the error {{ "error": "invalid_grant", "error_description": "invalid_username_or_password" }} Any idea how i solve this. The only change i have made was to enable IdentityServer Yet i have double checked the credentials and i can log in. Could it be 2 factor authentication (If so how would we handle this via the API) Thanks

I am trying to build a custom Public site. I have included <script src="~/AbpScripts/[email protected]" type="text/javascript"></script> in the bottom of my page but i get this error. GetScripts:1299 Uncaught TypeError: Cannot read property 'utcClockProvider' of undefined at GetScripts:1299 at GetScripts:1302

Is it possible to overide the save on the database context. We have a custon attribute that we need to check if the value has the attribute defined and then modify the data. Could you advise me the best way to do this.

We are basically looking to implememnt something like this where we can see if a Encryped attribute is set and then if need be encrypt the data

<a class="postlink" href="https://gist.github.com/albertbori/e95860644e69c1572441">https://gist.github.com/albertbori/e95860644e69c1572441</a>

In the current solutions bootstraps css is loaded from /metronic/dist/html/default/assets/demo/default/base/style.bundle.css

We would like to remove the bootstrap from here as this makes it very hard to manage and we want to load bootstrap from a cdn as most users would then have it cached. Is there a safe way to remove the bootstrap out of this file. I can understand why they would merge that in to be honest.

Nothing in Gulp seems to create the still.bundle from what i can see

I seem to be running into issues when i rename the namespace. I want to rename RattleHub.Permyssion.Web.Host to RattleHub.Permyssion.Web.Api RattleHub.Permyssion.Web.Mvc to RattleHub.Permyssion.Web.WebSite and RattleHub.Permyssion.EntityFrameworkCore to RattleHub.Permyssion.EntityFramework

Is this possible or is it breaking the licensing

I have service that i want to call that calls the bing rss service.

I have exposed it in the .Application project as follows

public ListResultDto<AddressListDto> GetAddresByString(string input) { var address = new List<Address>(); var locationService = new BingMaps.BingGeoSpatialService(); var bingAddresses = locationService.GetLocationsByQueryAsync(input).Result; if (bingAddresses?.EstimatedTotal > 0) { foreach (var location in bingAddresses.Locations) { var foundAddress = new Address(); if (AbpSession.UserId != null) { foundAddress.UserId = AbpSession.UserId.Value; } foundAddress.AddressLine1 = location.Address.AddressLine; foundAddress.AdminDistrict = location.Address.AdminDistrict; foundAddress.AdminDistrict2 = location.Address.AdminDistrict2; foundAddress.City = location.Address.Locality; foundAddress.Country = location.Address.CountryRegion; foundAddress.FormattedAddress = location.Address.FormattedAddress; if (location.GeocodePoints?.Count > 0) { foundAddress.Latitude = (decimal)location.GeocodePoints[0].Coordinates[0]; foundAddress.Longitude = (decimal)location.GeocodePoints[0].Coordinates[1]; } address.Add(foundAddress); } }

        return new ListResultDto&lt;AddressListDto&gt;(address.MapTo&lt;List&lt;AddressListDto&gt;>());
    }

This seems to expose it perfectly but if i call abp.services.app.address.getAddresByString("Bukingham palace, england"); it seems to return immediately. Do you have a example where i can leverage the framework to expose logic and return the result to the browser (console); Basically im trying to use the framework to expose javascript functions

Showing 1 to 9 of 9 entries