Activities of "murat.yuceer"

Hi, how can i change tenant change panel?

Hi,

See: https://docs.abp.io/en/abp/latest/Timing

Configure<AbpClockOptions>(options => 
{ 
    options.Kind = DateTimeKind.Local; 
}); 

Hi, liangshiwei i think abp always store UTC +0 on database right? But client side we need to store setting about client UTC. Where do we set this

Thanks, i think this can be optional. Like language settings on feature

Just i try to find interface in abp to get token independent wasm/server/console

Hi mailming i found that from abp source code, i guess its work independent (wasm or server)

    public async Task&lt;string&gt; SendAsync(string url)
    {
        var client = HttpClientFactory.CreateClient();
        var requestMessage = new HttpRequestMessage(HttpMethod.Get, url);
        AddHeaders(requestMessage);

        var uri = new Uri(url, UriKind.RelativeOrAbsolute);
        if (!uri.IsAbsoluteUri)
        {
            var remoteServiceConfig = RemoteServiceOptions.RemoteServices.GetConfigurationOrDefault("Default");
            client.BaseAddress = new Uri(remoteServiceConfig.BaseUrl);
            await HttpClientAuthenticator.Authenticate(new RemoteServiceHttpClientAuthenticateContext(client, requestMessage, new RemoteServiceConfiguration(remoteServiceConfig.BaseUrl), string.Empty));
        }

        var response = await client.SendAsync(requestMessage);
        
        return await response.Content.ReadAsStringAsync();
    }

We have same scenario, i was created ticket about that. If system grows you will need like that requirements. I thinked maybe features could be scoped if he want. Like feature admin, just can manage own feature and every feature could be scoped about permissions, roles but is an issue to be considered

I guess problem is suite generated custom repositries with EmployeeManagementDbContext not used IEmployeeManagementDbContext

Yes but I wanted to approach the event like yours, in future i could seprate more little parts my modules and merge them one service like administration service.. I try to understand why its not worked

By the way what is reason of merge module dbcontexts in one service context?

Thank you

Hi,

dbcontext

    [ConnectionStringName(EmployeeManagementServiceDbProperties.ConnectionStringName)]
    public class EmployeeManagementServiceDbContext : AbpDbContext<EmployeeManagementServiceDbContext>, IEmployeeManagementDbContext//module dbcontext interface
    {

        public DbSet<EmployeeVestedYearlyLeaveHistory> EmployeeVestedYearlyLeaveHistories { get; set; }
        public DbSet<EmployeePhoto> EmployeePhotos { get; set; }
        public DbSet<EmployeeContract> EmployeeContracts { get; set; }
        ...
        
     public EmployeeManagementServiceDbContext(DbContextOptions<EmployeeManagementServiceDbContext> options) : base(options)
        {

        }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            builder.ConfigureEmployeeManagement();
        }
    }

appsettings

{
  "App": {
    "SelfUrl": "https://localhost:44371"
  },
  "AuthServer": {
    "Authority": "https://localhost:44322",
    "RequireHttpsMetadata": "true"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",
  "ConnectionStrings": {
    "EmployeeManagementService": "Server=localhost,1434;Database=Kuys_EmployeeManagementService;Trusted_Connection=True",
    "AdministrationService": "Server=localhost,1434;Database=Kuys_Administration;Trusted_Connection=True",
    "SaasService": "Server=localhost,1434;Database=Kuys_Saas;Trusted_Connection=True"
  },
  "StringEncryption": {
    "DefaultPassPhrase": ".."
  },
  "Redis": {
    "Configuration": "localhost:6379"
  },
  "RabbitMQ": {
    "Connections": {
      "Default": {
        "HostName": "localhost"
      }
    },
    "EventBus": {
      "ClientName": "Kuys_EmployeeManagementService",
      "ExchangeName": "Kuys"
    }
  },
  "ElasticSearch": {
    "Url": "http://localhost:9200"
  },
  "AbpLicenseCode": ".."
}

Hi @maliming, i have information about devex blazor. Did you understand my example ?

If you want to use full server side skills of dxdatagrid, your api have to request DataSourceLoadOptionsBase object (contains some array types, custom IList Filter vb.. look https://github.com/DevExpress/DevExtreme.AspNet.Data/blob/master/net/DevExtreme.AspNet.Data/DataSourceLoadOptionsBase.cs)

But when i use dynamic http proxy, its not serialize get url correct for DataSourceLoadOptionsBase object type, already devex have extension method for that dataSourceLoadOptionsBase.ConvertToGetRequestUri(uri) because of that i need to do custom Get request (I need to determine the query part of the address)

Also i have IModelBinder on httpapi side (implemented from devex document)

    public class DataSourceLoadOptionsBinder : IModelBinder
    {
        public Task BindModelAsync(ModelBindingContext bindingContext)
        {
            var model = Activator.CreateInstance(bindingContext.ModelType);
            DataSourceLoadOptionsParser.Parse((DataSourceLoadOptionsBase)model, key => bindingContext.ValueProvider.GetValue(key).FirstOrDefault());
            bindingContext.Model = model;
            bindingContext.Result = ModelBindingResult.Success(model);
            return Task.CompletedTask;
        }
    }
Showing 31 to 40 of 64 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 05:21