retrieve json with entityframework core
问题 I have store procedures returning json, thanks to for json path. How do you consume them with entity-framework-core? The following doesn't work: var foo = _db.Set<JObject>() .FromSql("dbo.Mine @customerid = {0}", _user.guid) .FirstOrDefault(); Because JObject type is not part of the model: InvalidOperationException: Cannot create a DbSet for 'JObject' because this type is not included in the model for the context. But how are we supposed to do that with entity-framework-core? 回答1: After