"joe@tronactive.com" की गतिविधियाँ

Is there a good way to upgrade a MVC app to a Blazor Web Assembly version?

  • ABP Framework version: v4.2.2
  • UI type: MVC
  • DB provider: EF Core

I am also a ASP.NET Zero user and I like how the log file starts new once it reaches 10MB. How can I apply something like that to abp? The log files get way to big to handle. To me it is a big issue.

What is the recommended way to use a DBContext directly in a service? Is it something like this? var masterDbContext = (Integr8MasterDbContext) await _customerRepository.GetDbContextAsync();

Or directly inject the DBContext like this? private readonly Integr8MasterDbContext _masterDbContext;

  • ABP Framework version: v4.2.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I want to redirect a user to the actual login page https://localhost:44343/Account/Login if they are not logged in. Not the home page. I tried adding an override HomeController but it doesn't seem to be overriding the frameworks. I put a break poing in the Index method and it never gets hit. Any ideas why?

[Dependency(ReplaceServices = true)] public class HomeController : AbpController { public ActionResult Index() { if (CurrentUser.IsAuthenticated) { return View(); }

        return Redirect("/Account/Login");
    }
}
सवाल

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.2.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I added the FileManagement module code through ABP Suite. But decided not to use it for now. Is there anyway to remove it now beside obviously just in Visual Studio and remove the files? I want to make sure everything is removed and it doesn't show up in ABP Suite as installed.

  • ABP Framework version: v4.2.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I installed the FileManagement module. I have configured it to use the FileSystem which all works good. But instead of keeping track of files using a Guid for name. i would like to just have the app scan a specific folder and show the folder system instead.

SO basically if I have a root default folder of I:\Dev\JML\TestFileSystem\ at his has a folder called XML and a folder PDFs with 2 different files each. It would just automatically show the file structure like below. And then when you create a folder and upload files to the folder it will rescan the structure and rebuild the nested directories and files. Not create them in the DB. Any help would be appreciated. Root --XML ---test.xml ---test2.xml --PDFs ---test.pdf ---test2.pdf

  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

I need to use the GetDbContext from a repository just like in these documents https://docs.abp.io/en/abp/1.0/Entity-Framework-Core it states about 3/4 down on the page "GetDbContext returns a DbContext reference instead of BookStoreDbContext. You can cast it, however in most cases you don't need it."

I need to do this since my project has several DbContexts but I haven't found a good way to cast it yet. Do you have any examples or suggestion?

  • ABP Framework version: v3.1.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): no

I have a view in the DB and a class that I have no problem adding to my DBContext and accessing through a different entity reposittory through the dbsets. But I want to create a repository specifically for this view. But I am unsure the best method for it.

I was thinking just base : Entity with no ID but I have to use a composit keys then and technically I do not have any setup. Any suggestions would be greatly appreciated. Thank you

  • ABP Framework version: v3.1
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): Tiered Entity Framework SQL Server

I have 3 DB contexts, my main one for the ABP API database, two others that connect to two DBs that we already had and all works just fine.

We have one database that has Customer table in it and a Connection table. The Connection table holds DB connections for each customers. This is NOT the main ABP database. But what I want to do is split out Customer specific databses similar to how tenant specific DBs are done in ABP. I want to create a CustomConnectionStringResolver pass in a customer ID to queury the Connection table to get the customer specific DB connection string. Then change the connectionString of our CustomerDbContext to the Customer Specific database instead of the default one. I have done this in other projects that use just basic EntityFramework and no ABL but not that works with ABP and the ConnectionStringNameAttribute. I want to do this with a DbContext that inherits from AbpDbContext<CustomerDbContext> and uses the ConnectionStringNameAttribute.

Any help would be appreciated.

  • ABP Framework version: v3.10
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

I have been trying to figure out with ABPs Background system how to enqueue to a custom hangfire queue. WIth using just the basic hangfire api I just put an attribute above the method I am calling in the enqueue method [Queue("CustomQueue")] but that does not work with ABPs hangfire version. Is there anyway to get it to enqueue to my custom queue besides the default queue?

31 प्रविष्टियों में 21 से 30 दिखा रहा है
Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11