I'm following this tutorial https://docs.abp.io/en/abp/latest/Tutorials/Part-1?UI=NG&DB=EF#map-the-book-entity-to-a-database-table
In that step it instructs me to add b.ConfigureByConvention to the configuration in DbContext but dotnet tells me it is not defined.
I have abp version 5.3.4 and checked that the tutorial is for the correct version.
I generated the project with the abp CLI so the packages should not be a problem.
Is there some step that I overlooked?
The complete error is:
'EntityTypeBuilder' does not contain a definition for
'ConfigureByConvention' and no accessible extension method
'ConfigureByConvention' accepting a first argument of type
'EntityTypeBuilder' could be found (are you missing a using
directive or an assembly reference?)
The ConfigureByConvention method is an extension method, so your IDE probably could not find the related namespace and not suggested to you.
If you add using Volo.Abp.EntityFrameworkCore.Modeling; as namespace then it should work as expected.
Related
I'm using EF 6.1.3 and installed EntityFramework.BulkInsert-ef6.
context.BulkSaveChanges();
gives me an error
context does not contain a definition for BulkSaveChanges
I'm forgetting a configuration? Reading https://entityframework-extensions.net/bulk-savechanges I cannot figure it out
You are using the wrong package.
See download link here: https://entityframework-extensions.net/download
You want to Z.EntityFramework.Extensions package: https://www.nuget.org/packages/Z.EntityFramework.Extensions/
i am quite struggeling on an implementation :
i am trying to make a generic uberjar, totally agnostic of the target environment.
In the meantime, i am referencing in my jboss-deployment.xml a module named configuration.
i would like that my uberjar generates a reference to this external module which is outside the jar, let's say /home/user/modules/configuration
I tried to use the additionalModules property of the thorntail plugin to reference this module, but nothing is working.
How do you do this guys ?
having a generic uberjar
having a module externalized to the uberjar which contains the environment needs
Regards,
Guillaume
Maybe someone can help me with my requirement.
I am in trouble about the compilation of a new custom version of extjs with the use of sencha CMD.
For this purpose, I have used diffetent instructions but with the same result. No one instructions seems to work properly or perhaps there is something wrog in these instruction.
Below, the latest instruction that I have used for produce a custom version for extjs.
sencha -debug=false compile -classpath="ext-6.0.1\classic\classic\src,ext-6.0.1\packages\core\src,ext-6.0.1\classic\classic\overrides" exclude -namespace Ext.chart and concat -yui -out "test.js"
After the execution of this instruction, in test.js I have a custom version of Extjs. Or so it seems.
If I include this js into a webpage, with Firefox and firebug I can see this error of javascript: "Ext is undefined".
From this, I have some questions:
First of all, is this the correct way to compile a new custom version?
The classpath parameter is correct? There are other paths to include?
In the instruction above, I have included the "exclude" parameter (for the namespace Ext.chart) but if I search in the output file I can found the related functions. It is the correct way to exclude something? Ext.chart is the namespace or is the class name?
Thanks in advance for any reply.
Lorenzo.
I'm running junit on a class that is configured for cxf. I get this error
Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
when I ask Spring to retrieve the instance on he class. maven dependency includes cxf 2.7.4 (cxf-rt-ws-policy-2.7.4.jar) and I see neethi 3.0.2.jar is also included. Another post mentioned an issue if neethi 2.x was used with cxf 2.x. but this is not my case.
Use mvn dependency:tree to find out which dependency also has the org.apache.neethi:neethi:{version}. In my case it was the org.wso2.carbon.core.
To fix this I added the neethi dependency needed, first in my dependency pom tree.
I'm trying to create silverlight project using eclipse.
i've used PlaneProjection tag in xaml page.
this automatically generated code in CSharp..
there i'm getting error like,
The type or namespace name 'PlaneProjection' could not be found (are you missing a using directive or an assembly reference
Page.g.cs /Hekllo/obj/Debug line 44 Problem Full Build Marker
what i've understood is there is no reference available here for PlaneProjection.
Please help me.
Your project must have a reference to System.Windows.dll
Typically it can be found here:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\vX.X\System.Windows.dll