Thursday, August 4, 2011

DataMember and Virtual Property problem in WCF

Properties dont come along on the serverside when a property is virtual which is required by different ORMs like EF4 and all. So I need to do this to alternate that:

public class CGContext : DbContext{
        public CGContext() {
            this.Configuration.ProxyCreationEnabled = false;
        }

No comments:

Post a Comment