Posts   
 
    
Samee Mir
User
Posts: 6
Joined: 12-Jan-2010
# Posted on: 12-Jan-2010 13:32:04   

Dynamax.Saas.HelperClasses.EntityCollection<EntityClasses.FolderEntity> e = new HelperClasses.EntityCollection<EntityClasses.FolderEntity> (new FactoryClasses.FolderEntityFactory()); EntityClasses.FolderEntity f = new EntityClasses.FolderEntity (); DataAccessAdapter adapter = new DataAccessAdapter(); adapter.FetchEntityCollection(e, null); EntityView2<EntityClasses.FolderEntity> e2 = new EntityView2 <EntityClasses.FolderEntity>(e,(FolderFields.Name!="ABC"),null); ArrayList array = new ArrayList(); array.Add (new EntityPropertyProjector(FolderFields.Name ,"Name")); //propertyProjectors.Add(new EntityPropertyProjector(FolderFields.FolderId , "Folder ID")); DataTable projectionResults = new DataTable(); e2.CreateProjection(array , projectionResults);

here is my code. the problem is in last lin..there are three errors 1 The best overloaded method match for 'SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<EntityClasses.FolderEntity>.CreateProjection( System.Collections.Generic.List<SD.LLBLGen.Pro.ORMSupportClasses.IEntityPropertyProjector>, SD.LLBLGen.Pro.ORMSupportClasses.IEntityDataProjector)' has some invalid arguments MainWebRole\App_Code\DataServer.cs 61 21 MainWebRole"

2

Error 6 Argument 1: cannot convert from 'System.Collections.ArrayList' to 'System.Collections.Generic.List<SD.LLBLGen.Pro.ORMSupportClasses.IEntityPropertyProjector> ' MainWebRole\App_Code\DataServer.cs 61 41 MainWebRole

3

Error 7 Argument 2: cannot convert from 'System.Data.DataTable' to 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityDataProjector' MainWebRole\App_Code\DataServer.cs 61 49 MainWebRole

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 12-Jan-2010 15:32:49   

Changing

ArrayList array = new ArrayList();

to

List<IEntityPropertyProjector> array = new List<IEntityPropertyProjector>();

should get rid of error number 2. I'll take a look at the other one for you - are you sure you are using the correct overload of the CreateProjection method ?

Matt

Samee Mir
User
Posts: 6
Joined: 12-Jan-2010
# Posted on: 13-Jan-2010 06:23:42   

can you tell me whats this error for

Compiler Error Message: CS0433: The type 'SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<TEntity>' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\aabd16bc\f33ec5b8 \assembly\dl3\7b040544\00985b64_1c4cca01 \SD.LLBLGen.Pro.ORMSupportClasses.CF35.DLL' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\aabd16bc\f33ec5b8\assembly\dl3\12a88a3c \00d3b36c_1c4cca01\SD.LLBLGen.Pro.ORMSupportClasses.NET20.DLL'

i have removed one refference but still its show me this error on below statements

Line 56: SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<EntityClasses.FolderEntity> e2 = new SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<EntityClasses.FolderEntity>(e, (FolderFields.Name != "ABC"), null);

Line 57: ArrayList array = new ArrayList();

Samee Mir
User
Posts: 6
Joined: 12-Jan-2010
# Posted on: 13-Jan-2010 06:32:05   

Saas.HelperClasses.EntityCollection<EntityClasses.FolderEntity> e = new HelperClasses.EntityCollection<EntityClasses.FolderEntity> (new FactoryClasses.FolderEntityFactory()); EntityClasses.FolderEntity f = new EntityClasses.FolderEntity (); DataAccessAdapter adapter = new DataAccessAdapter(); adapter.FetchEntityCollection(e, null); SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<EntityClasses.FolderEntity> e2 = new SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<EntityClasses.FolderEntity>(e, (FolderFields.Name != "ABC"), null); ArrayList array = new ArrayList(); array.Add (new EntityPropertyProjector(FolderFields.Name ,"Name")); //propertyProjectors.Add(new EntityPropertyProjector(FolderFields.FolderId , "Folder ID")); DataTable projectionResults = new DataTable(); e2.CreateProjection(array , projectionResults);

the colored line is giving me the following error...

Error 1 The best overloaded method match for

'SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<Saas.EntityClasses.FolderEntity>.CreateProjection( System.Collections.Generic.List<SD.LLBLGen.Pro.ORMSupportClasses.

IEntityPropertyProjector>, SD.LLBLGen.Pro.ORMSupportClasses.IEntityDataProjector)' has some invalid arguments D:\Intagleo\DiSin\Saas\MainWebRole\App_Code\DataServer.cs 61 16 Saas.MainWebRole

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 13-Jan-2010 09:29:19   

can you tell me whats this error for

Compiler Error Message: CS0433: The type 'SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<TEntity>' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\aabd16bc\f33ec5b8\assembly\dl3\7b040544\00985b64_1c4cca01\SD.LLBLGen.Pro.ORMSupportClasses.CF35.DLL' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\aabd16bc\f33ec5b8\assembly\dl3\12a88a3c\00d3b36c_1c4cca01\SD.LLBLGen.Pro.ORMSupportClasses.NET20.DLL'

i have removed one refference but still its show me this error on below statements

Just delete the "Temporary ASP.NET Files" folder, and rebuild the application.

Saas.HelperClasses.EntityCollection<EntityClasses.FolderEntity> e = new HelperClasses.EntityCollection<EntityClasses.FolderEntity> (new FactoryClasses.FolderEntityFactory()); EntityClasses.FolderEntity f = new EntityClasses.FolderEntity (); DataAccessAdapter adapter = new DataAccessAdapter(); adapter.FetchEntityCollection(e, null); SD.LLBLGen.Pro.ORMSupportClasses.EntityView2< EntityClasses.FolderEntity> e2 = new SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<EntityClasses.FolderEntity>(e, (FolderFields.Name != "ABC"), null); ArrayList array = new ArrayList(); array.Add (new EntityPropertyProjector(FolderFields.Name ,"Name")); //propertyProjectors.Add(new EntityPropertyProjector(FolderFields.FolderId , "Folder ID")); DataTable projectionResults = new DataTable(); e2.CreateProjection(array , projectionResults);

the colored line is giving me the following error...

Error 1 The best overloaded method match for 'SD.LLBLGen.Pro.ORMSupportClasses.EntityView2<Saas.EntityClasses.FolderEntity>.CreateProjection(System.Collections.Generic.List< SD.LLBLGen.Pro.ORMSupportClasses.IEntityProp ertyProjector>, SD.LLBLGen.Pro.ORMSupportClasses.IEntityDataProjector)' has some invalid arguments D:\Intagleo\DiSin\Saas\MainWebRole\App_Code\DataServer.cs 61 16 Saas.MainWebRol

Which LLBLGen Pro runtime library version/build are you using?

Samee Mir
User
Posts: 6
Joined: 12-Jan-2010
# Posted on: 13-Jan-2010 10:28:57   

2.6

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 13-Jan-2010 10:53:44   

Please check the following link to know how to get the build number: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7720