Walaa wrote:
A similar problem was reported before (and fixed):
http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=6712
If you a later version (than the one mentioned to be fixed), please post the runtimeLibrary version.
DataProjections were only introcuded in 2.0 and I think the fix above is for v 2005.1
I am running 2.0.0.0 Final Aug 3rd.
Walaa wrote:
Please post a complete code snippet too.
Also a compete error/exception text with stack trace.
[3336] Message: This collection is read-only.
[3336] TargetSite: Int32 PerformAdd(T)
[3336] StackTrace: at SD.LLBLGen.Pro.ORMSupportClasses.CollectionCore`1.PerformAdd(T item)
[3336] at SD.LLBLGen.Pro.ORMSupportClasses.CollectionCore`1.Add(T item)
[3336] at SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2`1.SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection2.Add(IEntity2 entityToAdd)
[3336] at SD.LLBLGen.Pro.ORMSupportClasses.DataProjectorToIEntityCollection2.AddProjectionResultToContainer(IList projectors, Object[] rawProjectionResult)
[3336] at SD.LLBLGen.Pro.ORMSupportClasses.ProjectionUtils.FetchProjectionFromReader(List`1 valueProjectors, IGeneralDataProjector projector, IDataReader datasource, Int32 maxNumberOfItemsToReturn, Int32 pageNumber, Int32 pageSize, Boolean clientSideLimitation, Boolean clientSideDistinctFiltering, Boolean clientSidePaging)
[3336] at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchProjection(List`1 valueProjectors, IGeneralDataProjector projector, IDataReader reader)
[3336] at Sds.ModernArk.Services.Ark.DataManagers.ItemSummaryReader.GetItemWithAdditionalInfo(Int64 itemID, Boolean includeTags, Boolean includeFolders, Boolean includeComments, Boolean includeClipboardInfo, Boolean inlcudePermissions, ReaderTools tools) in C:\Source\Sds.ModernArk.Services.Ark\DataReaders\ItemSummaryReader.cs:line 408
[3336] at Sds.ModernArk.Services.Ark.DataManagers.ItemManager.GetItemWithAdditionalInfo(Int64 itemID, String renditionSize, Boolean includeTags, Boolean includeFolders, Boolean includeComments, Boolean inlcudePermissions, Boolean includeLicenses, Boolean inlcudeClipboardInfo, ReaderTools tools) in C:\Source\Sds.ModernArk.Services.Ark\DataManagers\ItemManager.cs:line 251
The question is firstly... is projecting data into an entitiy's ReadOnly m:n collection supported?
Marcus