Hi all,
I'm not sure what I'm doing wrong, but I'm getting this error:
The field is marked readonly and cannot be changed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: SD.LLBLGen.Pro.ORMSupportClasses.ORMFieldIsReadonlyException: The field is marked readonly and cannot be changed.
Source Error:
Line 402: _campaign = CType(relatedEntity, CampaignEntity)
Line 403: AddHandler _campaign.AfterSave, AddressOf OnEntityAfterSave
Line 404: MyBase.SetEntitySyncInformation("Campaign", _campaign, CampParmEntity.Relations.CampaignEntityUsingCampaignID)
Line 405:
Line 406: End If
Source File: C:\Multi-Vision\Projects\SpeechezyWeb3\Data Access Layer\DatabaseGeneric\EntityClasses\CampParmEntity.vb Line: 404
Here is my code:
Dim _CP As DataAccessLayer.EntityClasses.SEZCampParmEntity = New DataAccessLayer.EntityClasses.SEZCampParmEntity
_CP.Name = "MyParameterName"
_CP.Value = "123456"
_Campaign.CampParmCollection.Add(_CP) <== Failed
Any ideas why I can't add an entity to my collection? Where can I check for readonly flags on a collection?
I'm using the SubClass templates.
Thanks.