SL Cloning issue - Internal setter
Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4587
Printed Date: 28-Mar-2025 at 4:30am
Topic: SL Cloning issue - Internal setter
Posted By: smi-mark
Subject: SL Cloning issue - Internal setter
Date Posted: 31-Oct-2013 at 11:53am
If you have an entity with an internal setter you will need to add the following to your SL models AssemblyInfo.cs:
[assembly: InternalsVisibleTo("IdeaBlade.Core.SL, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b3f302890eb528" + "1a7ab39b936ad9e0eded7c4a41abb440bead71ff5a31d51e865606b2a7e6d0b9dd0d92b113b9d1" + "0fb13f01fb5d856e99c1e61777cf4772d29bad7e66ffb93fc5cbd63b395046c06ff57db6ecbeee" + "4bdd6effc405878d65cfc4911708ed650da935d733fc5dc707f74910e025ac080543e01a6cc863" + "b9f85ffc")]
|
Otherwise you get an error saying something like: Attempt by method DeepCloneComplexObject to access method Entity.set_Property failed
|
Replies:
Posted By: kimj
Date Posted: 31-Oct-2013 at 3:40pm
Thanks. We failed to document this as a breaking change. We did somewhat clumsily document it on the Code First Troubleshooting page, but that's a pain to sift through.
|
|