{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:nuget/entityfix","name":"entityfix","description":"When you call stored procedure with select and output parameters and you don't select on some conditions (for example, you're just returning an error code) — you get a mapping EntityCommandExecutionException. This package fixes this annoying behavior of EF by returning empty data set and letting you read output parameters.\n\nExample:\nConsider you have this sql procedure:\n\nCREATE PROCEDURE [dbo].[Foo]\n    @Condition int = NULL,\n    @ResultCode Int = NULL OUTPUT\nAS\nBEGIN\n    IF @Condition IS NULL BEGIN\n        SET @ResultCode = 1;       -- return 1 if condition = null\n        RETURN;\n    END\n    SELECT 1 as 'One', 2 as 'Two'; -- select otherwise\n    SET @ResultCode = 0;\nEND\n\nCalling this procedure in EF:\n\nvar resultCodeParameter = new ObjectParameter(\"ResultCode\", typeof(int));\nvar result = db.Foo(null, resultCodeParameter).FirstOrDefault();\nvar resultCode = resultCodeParameter.Value;\n\nwill throw an exception:\nSystem.Data.Entity.Core.EntityCommandExecutionException: The data reader is incompatible with the specified 'xxx.Foo_Result'. A member of the type, 'One', does not have a corresponding column in the data reader with the same name.\n\nCalling EntityFix.Load() once on your application start will fix this bug.","version":"1.0.3","softwareVersion":"1.0.3","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/Zelenov/EntityFix","issueTracker":"https://github.com/Zelenov/EntityFix/issues","url":"https://github.com/Zelenov/EntityFix","keywords":["EF","entity","entityframework","fix","select","output","stored"],"programmingLanguage":{"@type":"ComputerLanguage","name":"C#"},"maintainer":[{"@type":"Person","name":"Zelenov"}],"author":[{"@type":"Person","name":"Zelenov"}],"copyrightHolder":[{"@type":"Person","name":"Zelenov"}],"dateCreated":"1900-01-01","dateModified":"2016-04-19","datePublished":"2016-04-19","copyrightYear":1900,"downloadUrl":"https://api.nuget.org/v3-flatcontainer/entityfix/1.0.3/entityfix.1.0.3.nupkg","applicationCategory":"nuget","runtimePlatform":"nuget","developmentStatus":"active","sameAs":["https://www.nuget.org/packages/entityfix/"],"https://www.w3.org/ns/activitystreams#likes":1}