v.4.0 6th June release (15th may build). Adapter. Worked OK in v.3.5
BaseProfile is the abstract SuperEntity of a hierarchy. Has 4 fields, one of them is DiscriminatorField.
AdministratorProfile is a derived entity with those 4 fields (no new field)
and DiscriminatorField = 1
EntityCollection<BaseProfileEntity> colmyRoles = new EntityCollection<BaseProfileEntity>();
produces the following error in EntityCollection constructor:
System.MissingMethodException: No constructor without parameters for this object
SourceCode error:
Línea 71: {
Línea 72: /// <summary>CTor which determines the factory to use from the generic type argument, unless TEntity is an abstract entity. If possible use the ctor which accepts a factory</summary>
Línea 73: public EntityCollection() : base( (IEntityFactory2)null )
Línea 74: {
Línea 75: }
Archivo de origen: D:\tmp\N23_Adapter\DatabaseGeneric\HelperClasses\EntityCollection.cs Línea: 73
Stack:
[MissingMethodException: No constructor without parameters for this object.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
System.Activator.CreateInstance(Type type) +6
SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2`1.DetermineEntityFactory() in c:\Myprojects\VS.NET Projects\LLBLGen Pro v4.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\AdapterSpecific\EntityCollectionBase2.cs:1478
SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2`1..ctor(IEntityFactory2 entityFactoryToUse) in c:\Myprojects\VS.NET Projects\LLBLGen Pro v4.0\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\AdapterSpecific\EntityCollectionBase2.cs:99
Northwind.HelperClasses.EntityCollection`1..ctor() in D:\tmp\N23_Adapter\DatabaseGeneric\HelperClasses\EntityCollection.cs:73
It is NOT a priority.
TIA