New Posts New Posts RSS Feed: SL Cloning issue - Internal setter
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

SL Cloning issue - Internal setter

 Post Reply Post Reply
Author
smi-mark View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 24-Feb-2009
Location: Dallas, Texas
Posts: 343
Post Options Post Options   Quote smi-mark Quote  Post ReplyReply Direct Link To This Post Topic: SL Cloning issue - Internal setter
    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
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down