Hello, I ran the app without running update-database. Then I get this message: CREATE DATABASE statement not allowed within multi-statement transaction.
What's the reason behind this message and why I can't just count on EF to run the migrations automatically when app is running?
Thanks
Hello, Is authenticating users with Microsoft Account already pre-built in the framework? I am developing a module to integrate with OneDrive and I was wondering if this is already built-in.
According to this article, I can configure that as it is shown here: <a class="postlink" href="https://www.benday.com/2014/02/25/walkthrough-asp-net-mvc-identity-with-microsoft-account-authentication/">https://www.benday.com/2014/02/25/walkt ... ntication/</a>
If this integration is not currently available, shall I follow the above article? Anything specific to Abp?
Thanks
Hello, In a previous post you directed me to an article on how to extend a Tenant or any existing entity with additional properties or fields. I have a requirement where I need to add a Region property for each Tenant. Then, when a user logs in on the host, he/she will be given access to all Tenants having a certain Region property. Can you please guide me on how to implement such thing with the multitenancy Abp?
At first, I thought of the following: 1- Add a Region property to each Tenant. This will be a 1-to-many relationship, as a Region can have 1 or more Tenant, while a Tenant can only have 1 single Tenant. 2- Create a Role per Region at the Host-side 3- Add users to roles, and hence, based on role name I get to know all Tenants under that role.
I still believe I should make use of Permissions somewhere, but not sure how and where.
I appreciate your feedback.
Thank you Bilal
Hello,
By mistake, I deleted all migration files from the application.
So I generated a new migration file. When I run update-database, I get the following exception:
System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Abp.AbpException,Abp, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null'. at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner) at System.Data.Entity.Migrations.Design.ToolingFacade.Update(String targetMigration, Boolean force) at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0() at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) Type is not resolved for member 'Abp.AbpException,Abp, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null'.
That occurred during Seed somewhere seems!
Thanks
Hi, Is it possible to use another name for the Id for entities? Everywhere it is Id. I want to make it like EntityId.
Thanks
Hello, Is it possible to make use of the IdentityFramework in my custom code? Or is it bound specifically for User Management?
Thanks Bilal
Hello, I am going through the framework code and notice many places you use a combination of setting a Tenant Id and SaveChanges.
Shall I use this combination whenever I am saving records that belong to a specific Tenant?
Also, I know that SaveChanges() is usually used to get the Id of the newly added record, in the case of setting a Tenant, should I always follow it by Savechanges?
Finally, if an Entity has a TenantId, do I need to feed in the value or the framework would set this property to the current TenantID?
Thanks
Hello, Is there anything special to run the tests?
Few weeks ago I was able to run them normally. Today, I added a new Test class and the solution compiles. When I hit "Run Tests" the solution builds successfully but tests are not run.
Any idea?
Thanks
Hi, I am trying to wrap the bootstrap-select within a directive (Angular js 1.x).
Once the directive renders, I can select values, but the data bound to VM displays other values. For instance, if I select 'No', it will show 'Yes', etc.
Can you please have a look? I trying to make use of same components used by the framework without need to add other controls, at the same time, I want to encapsulate things together.
(function () {
function YesNoDecline($timeout) {
return {
restrict: 'A',
replace: true,
scope: {
id: '@',
name: '@',
data: '=ds'
},
template: '<select class="form-control bs-select" id="{{ id }}" name="{{ name }}"' +
' ui-jq="selectpicker" ui-options=\'{ iconBase: "fa", tickIcon: "fa fa-check" }\'>' +
' <option ng-repeat="obj in data" value="{{ obj.value }}">{{ obj.text }}</option>' +
'</select>',
link: function (scope, element, attrs, ngModelCtrl) {
var id = '#' + scope.id;
$timeout(function () {
$(id).selectpicker('refresh');
}, 0);
}
};
};
YesNoDecline.$inject = ['$timeout'];
appModule.directive('yesNoDecline', YesNoDecline);
})();
The way I call this directive:
<div yes-no-decline
name="Diet"
id="Diet"
ds="[{
value: 'No', text: 'No'
}, {
value: 'Yes', text: 'Yes'
}, {
value: 'Decline to answer', text: 'Decline To Answer'
}]"
ng-model="vm.diet">
</div>
{{ vm.diet}}
Thanks,.
Hi, In case I need to add a field to every new tenant created. I need to add a "location" field. What's the recommend or best way to do it?
Shall I extend the UI of the Tenant Form? Is there another to work it out?
Thanks