I have a database that has some existing tables that I did a database first creation of my entities and then added them to my ASP.NET Zero project. I want to keep migrations but only for the ASP.NET Zero tables. Is there away to shut off migrations for my entities that are existing tables?
I am working on updating to 4.0.0 and I am getting an error below. Has anyone gotten that when upgrading to 4.0?
Severity Code Description Project File Line Suppression State Error CS0121 The call is ambiguous between the following methods or properties: 'PHS.Configuration.HostingEnvironmentExtensions.GetAppConfiguration(Microsoft.AspNetCore.Hosting.IHostingEnvironment)' and 'PHS.Web.Configuration.HostingEnvironmentExtensions.GetAppConfiguration(Microsoft.AspNetCore.Hosting.IHostingEnvironment)' PHS.Web.Core C:\Code\PHS\PHS\aspnet-core\src\PHS.Web.Core\PHSWebCoreModule.cs 46 Active
I just updated my Angular 2 project to the latest 3.4.0 version and now I am getting the below error.
Message "Filter name MustHaveTenant not found" string
I am getting an error when I am trying to use AutoMapper to map a EditDTO to a Entity. I have made sure they have the same properties and they are spelled the same. I cannot figure this out. Would you have any idea?
AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.
I am currently building a Angular2 application for our business. I want to enable the Google Authentication. We use Google Apps and I only want to allow for our specific domain to be able to login and no other Google account. Would you have any good ideas how I can achieve this?
I am having an issue impersonating the user. It looks like it has to do with the anti-forgery token was meant for a different claims-based user. Below you can see some of the log entries when I try to impersonate...
WARN 2016-11-15 08:16:45,120 [35 ] ity.AntiForgery.AbpMvcAntiForgeryManager - The provided anti-forgery token was meant for a different claims-based user than the current user. WARN 2016-11-15 08:16:45,121 [35 ] rity.AntiForgery.AbpAntiForgeryApiFilter - Empty or invalid anti forgery header token. WARN 2016-11-15 08:16:45,121 [35 ] rity.AntiForgery.AbpAntiForgeryApiFilter - Requested URI: <a class="postlink" href="http://localhost:6241/api/services/app/session/GetCurrentLoginInformations">http://localhost:6241/api/services/app/ ... formations</a> WARN 2016-11-15 08:16:45,228 [18 ] ity.AntiForgery.AbpMvcAntiForgeryManager - The provided anti-forgery token was meant for a different claims-based user than the current user. WARN 2016-11-15 08:16:45,228 [18 ] rity.AntiForgery.AbpAntiForgeryApiFilter - Empty or invalid anti forgery header token. WARN 2016-11-15 08:16:45,228 [18 ] rity.AntiForgery.AbpAntiForgeryApiFilter - Requested URI: <a class="postlink" href="http://localhost:6241/api/services/app/userLink/GetRecentlyUsedLinkedUsers">http://localhost:6241/api/services/app/ ... inkedUsers</a> WARN 2016-11-15 08:16:45,230 [56 ] ity.AntiForgery.AbpMvcAntiForgeryManager - The provided anti-forgery token was meant for a different claims-based user than the current user. WARN 2016-11-15 08:16:45,231 [56 ] rity.AntiForgery.AbpAntiForgeryApiFilter - Empty or invalid anti forgery header token. WARN 2016-11-15 08:16:45,231 [56 ] rity.AntiForgery.AbpAntiForgeryApiFilter - Requested URI: <a class="postlink" href="http://localhost:6241/api/services/app/notification/GetUserNotifications">http://localhost:6241/api/services/app/ ... ifications</a> WARN 2016-11-15 08:16:45,299 [18 ] Abp.Logging.LogHelper - Abp.Authorization.AbpAuthorizationException: Current user did not login to the application!
I am having issues getting the datepicker from the Metronic theme working.
I added my scripts to the ScriptPaths.cs file and styles to StylePaths.cs file. And also the AppBundleConfig.cs file.
Then in my modal controller where I want to use the date picker I added the below function. Then call that function in the init() method of the modal controller.
var ComponentDateTimePickers = function () {
var handleDatePickers = function () {
if (jQuery().datepicker) {
$('.date-picker').datepicker({
orientation: "left",
autoclose: true
});
}
}
return {
//main function to initiate the module
init: function () {
handleDatePickers();
}
};
}();
Oh and also I did try the date range picker singular version which did work but I didn't like how I couldn't choose a different year without having to scroll to the date. This is a date of birth field so for some people having to scroll through 30 or so years is horrible design.
I have a form I want to be able to add additional collections to as the user wants. For example, say they want to enter they have a pet with the pet details. They want to add another pet, and then another etc.
Similar to this <a class="postlink" href="https://blog.rsuter.com/asp-net-mvc-how-to-implement-an-edit-form-for-an-entity-with-a-sortable-child-collection/">https://blog.rsuter.com/asp-net-mvc-how ... ollection/</a>
But in a Angular way and that works with Metronic. Do you guys have any idea how I could accomplish something similar to that?
I have a Renter type of user setup through table per hierarchy design that I want to automatically assign a Role and OU I have setup. What is the easiest way to do this?
Originally I was going to do something similar to this. But I obviously do not have the renter id yet as I am creating the user.
//Assign renter role
var renterRole = await _roleManager.GetRoleByNameAsync("Renter");
if (renterRole != null)
{
renter.Roles.Add(new UserRole(AbpSession.TenantId, renter.Id, renterRole.Id));
}
//Assign to OU
var renterOrgUnit = _organizationUnitRepository.FirstOrDefaultAsync(o => o.DisplayName.Equals("Renter"));
if (renterOrgUnit != null)
{
await UserManager.AddToOrganizationUnitAsync(renter.Id, renterOrgUnit.Id);
}
I am very new to Multi-Tenant applications.
I have some Entities that I inherit from the User class. So, for example, a Renter inherits from User and a Landlord inherits from a user. Then I have some Entities that map to tables that are a one to many relationships between the Renter and also the Landlord such as LandlordDemographics. Should classes like LandlordDemographics implement the IMayHaveTenant interface and have the TenantId Foreign key in it? So basically should all classes have the Tenant Id in them when developing a Multi-Tenant application? or should only the main class such as the User class have it?