Hi!
How can i check one more condition while login a user, like I have added a new column in AbpUsers table named IsPaid(bool). i need to check whether the value is true while login and login only if the value is true. :!:
Hi,
UserFriendly exception shows error like "Error details not sent by server" even while login, if model is not valid. why this happens. I didnt changed any code, please help me to sort out this issue!!
Hi,
Can i create new tenant before login, like creates tenant on signup? i tried with new build of boiler plate application. but it shows "Object reference not set to an instance of object" at the point where the tenant been created.
_abpZeroDbMigrator.CreateOrMigrateForTenant(tenant);
how could i solve this issue? i need to create new tenant even before a user login to the application.
Hi,
What should i do if i have Sub Menus! is there any option to show sub menus with permission??
How could i change login user only if email confirmed! please let me know if that functionality already exists in boiler plate!! :?:
HI,
I need to add dynamic roles and have sufficient permissions to roles we created. is that possible in boiler plate?? if yes please narrate me how!!
Hi,
A unhandled exception comes when i inspect element from browser. exception is:
The controller for path '/Scripts/toastr.js.map' was not found or does not implement IController.
i dont understand why it comes always. The toaster.js is already there in same path im using VS 2013.
Hi,
I have created a generic repository to write common method for all repositories. but it is not working for me. what i have done is, created IGenericRepository under core and implemented IRepository then created GenericRepository under EnitityFramework and implemented SampleProBaseRepository as well as IGenericRepository(Codes are bellow).
This is not working for me, please cross check the code and let me know if there any mistake i did or i should add some more code to the work the same.
IGenericRepository:
public interface IGenericRepository<TEntity, TPrimaryKey> : IRepository<TEntity, TPrimaryKey> where TEntity : class,IEntity<TPrimaryKey>
{
Task SaveChangesAsync();
}
public interface IGenericRepository<TEntity> : IRepository<TEntity> where TEntity : class,IEntity<int>
{
Task SaveChangesAsync();
}
GenericRepository
public class GenericRepository<TEntity, PrimaryKey> : SampleRepositoryBase<TEntity, PrimaryKey>, IGenericRepository<TEntity, PrimaryKey> where TEntity : class,IEntity<PrimaryKey>
{
protected GenericRepository(IDbContextProvider<SampleDbContext> dbContextProvider)
: base(dbContextProvider)
{
}
public async Task SaveChangesAsync()
{
await Context.SaveChangesAsync();
}
}
public class GenericRepository<TEntity> : SampleRepositoryBase<TEntity>, IGenericRepository<TEntity> where TEntity : class,IEntity<int>
{
protected GenericRepository(IDbContextProvider<SampleDbContext> dbContextProvider)
: base(dbContextProvider)
{
}
public async Task SaveChangesAsync()
{
await Context.SaveChangesAsync();
}
}
How could i create a seed to insert default data to the last created Db with multi tenancy?. or should I use any other method to insert default data..?
I need to insert some data to new Db at the time when i create new tenancy.I have created a seed method with tenant Id 1, as described in sample application. but it not works for me,the data are inserted into main Db only.