I'm creating essentially an Employee Search field (by last name) on the Dashboard and want the button to redirect to my Employee details page (passing the employeeID from a textbox on this page the user types into) and want to know what the best practice is for this. Of course a Route comes to mind but wanted to see if there was a preferred method by using the existing AppService for Employees and pass it a type, something like GetEmployee(GetEmployeeInput input) from the CSHTML page.
Somehow I have different versions of ABP in my solution. I have mostly 0.8.4.0 but the below 2 assemblies are 0.12.0.0
Abp.EntityFramework.Common.dll Abp.Web.Common.dll
What is the best way to get all of my assemblies in my ASP.Net Zero solution in sync?
You are correct. I found this over the weekend and figured out what was wrong with my solution. When creating my 'second' DbContext class I copied the first one. I want to post this here so anyone else with this issue can find a solution. What I had to do was remove the constructor for passing the connection string from the PreInitialize method : public MyAppDbContext(string nameOrConnectionString) : base(nameOrConnectionString)
as well as delete the constructor used by ABP to pass a Test/Mock connection string: public MyAppDbContext(DbConnection dbConnection) : base(dbConnection, true)
although I believe I probably could leave the latter.
The first one (used by PreInitialize) was the culprit. I looked inside the implementation for MultipleDbContextDemo and discovered that nuance.
Thank you for your time / response.
New to this framework.
Have tried working through examples but once I ran solution my new repository was created using the Default ContextDB (ABP Db) instead of the one I want to read from.
Are there any examples of using this framework to simply interact with other data sources (databases) on the same SQL Server?