{"action":"opened","issue":{"url":"https://api.github.com/repos/loresoft/EntityFramework.Extended/issues/194","labels_url":"https://api.github.com/repos/loresoft/EntityFramework.Extended/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/loresoft/EntityFramework.Extended/issues/194/comments","events_url":"https://api.github.com/repos/loresoft/EntityFramework.Extended/issues/194/events","html_url":"https://github.com/loresoft/EntityFramework.Extended/issues/194","id":124549398,"number":194,"title":"EntityFramework.Extended on EF6 derived types","user":{"login":"markhart1973","id":10461680,"avatar_url":"https://avatars.githubusercontent.com/u/10461680?v=3","gravatar_id":"","url":"https://api.github.com/users/markhart1973","html_url":"https://github.com/markhart1973","followers_url":"https://api.github.com/users/markhart1973/followers","following_url":"https://api.github.com/users/markhart1973/following{/other_user}","gists_url":"https://api.github.com/users/markhart1973/gists{/gist_id}","starred_url":"https://api.github.com/users/markhart1973/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markhart1973/subscriptions","organizations_url":"https://api.github.com/users/markhart1973/orgs","repos_url":"https://api.github.com/users/markhart1973/repos","events_url":"https://api.github.com/users/markhart1973/events{/privacy}","received_events_url":"https://api.github.com/users/markhart1973/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-01T16:22:55Z","updated_at":"2016-01-01T16:22:55Z","closed_at":null,"body":"Consider the following EF entities:\r\n\r\n    public class Location\r\n    {\r\n        [Key]\r\n        public int LocationId { get; set; }\r\n\r\n        [StringLength(50)]\r\n        [Required]\r\n        public string LocationDescription { get; set; }\r\n    }\r\n\r\n    public class LocationHolding : Location\r\n    {\r\n        [StringLength(50)]\r\n        [Required]\r\n        public string LocationDescriptionHolding { get; set; }\r\n    }\r\nThe context is derived from `DbContext` and has a single `DbSet`:\r\n\r\n    public IDbSet<Location> Location { get; set; }\r\nUsing the `EntityFramework.Extended` package, upon attempting a batch update:\r\n\r\n    context.Location\r\n        .OfType<LocationHolding>()\r\n        .Where(x => true)\r\n        .Update(u => new LocationHolding\r\n        {\r\n            LocationDescription = u.LocationDescriptionHolding\r\n        });\r\nThe following exception is thrown:\r\n\r\n    There are no EntitySets defined for the specified entity type 'TestEfHierarchy.Model.LocationHolding'.\r\n    If 'TestEfHierarchy.Model.LocationHolding' is a derived type, use the base type instead.\r\n    Parameter name: TEntity\r\nWhilst having success with the package against simple single entities, I've been unable to find an examples where this has been used in more complex situations.\r\n\r\nFor the entity hierarchy, both table-per-hierarchy and table-per-type have been tried, both with the same result. The only situation I have found to work is when updating with static values (i.e. LocationDescription = \"Foo\") and the hierarchy is TPH.\r\n\r\nHas anybody had similar experiences or found alternative workarounds? Appreciate that alternative methods such as stored procedures are available, but would like to use a code based/fluent approach."}}