Base solution for your next web application

Activities of "andmattia"

I try to add some static data on Seed method but I want to add row only if a feature is enable. I try but I not find how can get feature from database if i call

var featureSetting in allFeature.Where(t=> t.TenantId == tenant.Id).ToList()

it's always empty

Hi

I a grid view in some case the render show only a subset off column until a do resize event. Any idea?

I have a strange situation.

I a page with ui-grid I see that the column header will be localized in correct way but date inside page not. I make an example: page are setted in italian 1 load page show my header in intlian but row show me date in English (I check that abp language var are in italian) 2 load i do with f5 row are localized in italian

I see a similar issue on a pop up when I inject agular-datetime-picker via oclazyload and i solve put on 1st row

moment.locale(abp.localization.currentLanguage.name);

I think depend off some angular problem but I'm not sure any idea or similar issue? mat

Is possible to access to a entity (via manager) in a static class?

I have a method and I make a static extension if I want to give data from data base is possibile to do that? How?

mattia

I try to check if a user has one permission depending on a feature. I try to explain; feature -- UseApplication1 -> featureDependency: new SimpleFeatureDependency("UseApplication1") -- UseApplication2 -> featureDependency: new SimpleFeatureDependency("UseApplication2")

Permission all permission depend on -- Document -> featureDependency: new SimpleFeatureDependency("UseApplication2") ---| Add -> featureDependency: new SimpleFeatureDependency("UseApplication2") ---| Update -> featureDependency: new SimpleFeatureDependency("UseApplication2") ... -- Application-> featureDependency: new SimpleFeatureDependency("UseApplication1") ---| Add -> featureDependency: new SimpleFeatureDependency("UseApplication1") ---| Update -> featureDependency: new SimpleFeatureDependency("UseApplication1")

1 user -- Has permission Document,Add,Update 2 user -- has no permission

If i get all feature and I check if is enable in tenant if(await FeatureChecker.IsEnabledAsync(feature.Name))

now I need to check if user has one(or more) permission enable depending on this feature ...

var user = await UserManager.GetUserByIdAsync(AbpSession.UserId.Value); var userPermission = await UserManager.GetGrantedPermissionsAsync(user); userPermission.Where(t=>t.FeatureDependency())

... But How can I check if exists 1 (or more) check permission depending on my feature mattia

Question

Hi

I've an application that user can make a reservation and a lot of logic based on datetime, so in client side the user set a datepicker with 9:00 AM and I set my time zone in UTC +1, when data came from client to server in server side i see time set to 7:00 am and this value will be stored in database.

How is the best approch? Save on database in converted format or save in UTC?

Question

Hi

Map dll say that Mapper.Map(obj1,obj2); is obsolate how can I solve this issue? work around?

Mat

Question

I've a strange situation in debug I use this code

<div class="portlet light">
        <div class="portlet-title">
            <div class="inputs inputs-full-width">
                <div class="portlet-input">
                        <div class="row">
                            <div class="col-lg-10">
                                <form>
                                    <div class="input-group">
                                        <input ng-model="vm.requestParams.note" auto-focus class="form-control" placeholder="@L("SearchWithThreeDot")" type="text">
                                        <span class="input-group-btn">
                                            <button ng-click="vm.getModels()" class="btn btn-default" type="submit"><i class="icon-magnifier"></i></button>
                                        </span>
                                    </div>
                                </form>
                            </div> ....

and I see the lens with gray boxed but when I go to production it doesn't show me, so and same issue on checkbox or modal.

Any idea?

In according to custom repository <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#DocCustomRepositoryMethods">http://www.aspnetboilerplate.com/Pages/ ... oryMethods</a>.

Where is the right place to put your custom repository?

I try to use 2 db connection 1 to MSSQL (abp-zero [roles,users,etc]) one to business data on MySQL.

I use the sample code from <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/MultipleDbContextDemo">https://github.com/aspnetboilerplate/as ... ontextDemo</a> and I create the table and it's work when I call a method, based on a AbpModule to need data from MySql i catch an excection System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Invalid object name 'mdm.app_fd_tb_company'. in System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__167_0(Task1 result) in System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke() in System.Threading.Tasks.Task.Execute() So the excetion is relate to System.Data.SqlClient and not to MySql. How can tell to ABP that need to use EF for MySql and not to SQL server.

Another operation that I need to do is to set the initializer Database.SetInitializer<mySqlDbContext>(null); If I not set this row code first say me the database are not update

my db context refered to mysql is declared in this way [DbConfigurationType(typeof(MySqlEFConfiguration))] public class mySqlDbContext : AbpDbContext {

Showing 51 to 60 of 64 entries