Castle Core 2.5.2 and DynamicProxy - castle-windsor

is there a separate DynamicProxy assembly to download if I am using Castle Core 2.5.2 ?

No there isn't
........................

Related

ASP.NET CORE with MySQL and EF Core - Multiple connection string handling

I have ASP.NET CORE 2 application with MySQL 5.7 and EF Core 2.0 in code-first approach.
I have setup my database in replication for Read and Write. So how can I configure my EF Core for these two connection string for respective operations i.e. Read and Write?
It is a good choice to use open source DBMS with .Net core
first of all, install these two packages in your project:
Mysql.Data
Mysql.Data.EntityFrameworkCore
You can do it simply from tools->Nuget packageManager -> package manager console
install-package Mysql.Data
install-package Mysql.Data.EntityFrameworkCore
or install them to your solution(Manage NuGet packages for solution)
After that go to appsettings.json and add the connection string as follow:
{"ConnectionStrings": {
"connectionName":"server=127.0.0.1;port=3306;database=mysqlTestDb;username=mysqlUser;password=mysqlPassword"},
Next, add your Context class and go to your startup.cs class for configuring mysql in DI in the ConfigureServices method add the following code
string connectionString = Configuration.GetConnectionString("mysqlConnectionName");
services.AddDbContext<DbContextName>(Options => Options.UseMySQL(connectionString));
After following all these steps, add migrations and update your database. I hope it works well for you.

Scaffolding a MySQL view using Pomelo and .Net Core 2.1

Apparently, with .Net Core 2.1, views are now supported. I was wondering if it is possible to scaffold a view using Pomelo, and if so, what the syntax is? I tried the "table" syntax with a view but it didnt work:
dotnet ef dbcontext scaffold "Server=myserver.com;Database=myDatabase;User=userame;Password=password;" "Pomelo.EntityFrameworkCore.MySql" -t personsView -o models
It runs, but it only generates a dbContext - it doesn't generate the model.
I'm using Pomelo 2.1.1 and Visual Studio 2017 (15.7.5). My project is a .Net Core 2.1 Web API. On the back end, I have MySQL Server 5.6.30.
Using Pomelo, you can use the following command (within the Package Manager Console) to generate the models as well as the context class:
Scaffold-DbContext [CONNECTION_STRING] Pomelo.EntityFrameworkCore.MySql -OutputDir [OUTPUT DIRECTORY] -Context [NAME OF CONTEXT CLASS] -f

mySQL Data Provider .NET Core 2.0

Looking for help for some solutions on switching out the default data provider for the project from MS SQL to mySQL. Eventually with the intent of deploying the solution to Auruora on AWS.
After installing the nuget package I get something along the lines of :
System.TypeLoadException: Method 'Clone' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore, Version=6.10.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.
This lead me to believe that there is no .NET 2.0 Entity Framework Core extention that runs for MySQL. Do I have to rollback to a different version?
For EntityFrameworkCore, it's suggested to use Pomelo.EntityFrameworkCore.MySql.
You may refer to their Getting Started documentation.
A fellow member of the community has kindly summarised the essential steps here:
Put Pomelo.EntityFrameworkCore.MySql into the xxx.EntityFrameworkCore project's .csproj file (see step 2 in the Pomelo getting started guide)
In your xxxDbContextConfigurer class put builder.UseMySql(...) rather than builder.UseSqlServer(...)
Change the connection string found in the appsettings.json file in the xxx.Web.Host project

Error while connecting MYSQL with asp.net core

Problem
I am trying to conect MY SQL with my asp.net core 2.0 web application. But it throug me this error
Method 'Clone' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.Internal.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore, Version=6.10.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.
I am using Repository pattern in asp.net core 2.0 with EF 2.0
startup.cs
here the error occurs
services.AddDbContext<MyContext>(options =>
options.UseMySQL(
Configuration.GetConnectionString("DefaultConnection"),
b=>b.MigrationsAssembly("AspNetCoreMultipleProject")
));
It looks like this could be because the official MySQL provider doesn't work with EF core 2.0 - GitHub issue.
The suggested workaround is to use the Pomelo provider - MS documentation

Why do I get a java.lang.NoSuchFieldError on web application with JSF?

I am working on web application with JSF and I try to make notifications by Primefaces Push but when I run the project I got this exception :
java.lang.NoSuchFieldError: framework
at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:66)
at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:36)
at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:74)
Also I added this Libraries :
primefaces 5.0 atmosphere-runtime-2.3.5 slf4j-api-1.7.7 commons-lang3-3.4
You should use an Atmosphere version that is compatible with PrimeFaces 5.0. That is 2.1.3 according to the docs, pom and releasenotes.