DelegatedCrmDataContext.DeleteLink

Jul 13, 2010 at 8:45 PM
Edited Jul 13, 2010 at 9:10 PM

It appears that all of the methods that DelegatedCrmDataContext exposes can be overridden (virtual) except for the DeleteLink method. Is this a bug or is there a specific reason that this particular method is not consistant with the others?

namespace Microsoft.Xrm.Portal.Data.Services
{
    public abstract class DelegatedCrmDataContext
    {
        protected DelegatedCrmDataContext(ICrmDataContext targetDataContext);

        protected virtual ICrmDataContext TargetDataContext { get; }

        public virtual void AddLink(object source, string sourceProperty, object target);
        public virtual void AddObject(object entity);
        public virtual ICrmEntity CreateEntity(string entitySchemaName);
        public void DeleteLink(object source, string sourceProperty, object target);
        public virtual void DeleteObject(object entity);
        public virtual IQueryable<T> GetEntities<T>();
        public virtual IQueryable<ICrmEntity> GetEntities(string entitySchemaName);
        public virtual void SaveChanges();
        public virtual void SetLink(object source, string sourceProperty, object target);
        public virtual void UpdateObject(object entity);
    }
}
Thanks!
Jeff