diff --git a/StoredProcedureEFCore.sln b/StoredProcedureEFCore.sln index 7fe4c1b..3658ff3 100644 --- a/StoredProcedureEFCore.sln +++ b/StoredProcedureEFCore.sln @@ -3,25 +3,22 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27004.2008 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StoredProcedureEFCore", "StoredProcedureEFCore\StoredProcedureEFCore.csproj", "{4AD24010-ADC2-463A-B0F7-7BFD8B89CDB7}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StoredProcedureEFCore.Tests.SqlServer", "StoredProcedureEFCore.Tests.SqlServer\StoredProcedureEFCore.Tests.SqlServer.csproj", "{B0106B50-2BA8-4DF1-87C9-18EF750495EF}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StoredProcedureEFCore.Tests", "StoredProcedureEFCore.Tests\StoredProcedureEFCore.Tests.csproj", "{5D2098BD-42DB-48D5-8AF9-90796F436538}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StoredProcedureEFCore.Tests.PgSql", "StoredProcedureEFCore.Tests.PgSql\StoredProcedureEFCore.Tests.PgSql.csproj", "{8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StoredProcedureEFCore.Tests.PgSql", "StoredProcedureEFCore.Tests.PgSql\StoredProcedureEFCore.Tests.PgSql.csproj", "{8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}" +EndProject Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "StoredProcedureEFCore.Tests.SqlServer.Database", "StoredProcedureEFCore.Tests.SqlServer.Database\StoredProcedureEFCore.Tests.SqlServer.Database.sqlproj", "{3C66C52D-A576-4E88-8883-A98A241C3EB5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StoredProcedureEFCore", "StoredProcedureEFCore\StoredProcedureEFCore.csproj", "{654361F1-5E5A-4C9E-8A12-CF2F682D5CB7}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4AD24010-ADC2-463A-B0F7-7BFD8B89CDB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4AD24010-ADC2-463A-B0F7-7BFD8B89CDB7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4AD24010-ADC2-463A-B0F7-7BFD8B89CDB7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4AD24010-ADC2-463A-B0F7-7BFD8B89CDB7}.Release|Any CPU.Build.0 = Release|Any CPU {B0106B50-2BA8-4DF1-87C9-18EF750495EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B0106B50-2BA8-4DF1-87C9-18EF750495EF}.Debug|Any CPU.Build.0 = Debug|Any CPU {B0106B50-2BA8-4DF1-87C9-18EF750495EF}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -30,20 +27,20 @@ Global {5D2098BD-42DB-48D5-8AF9-90796F436538}.Debug|Any CPU.Build.0 = Debug|Any CPU {5D2098BD-42DB-48D5-8AF9-90796F436538}.Release|Any CPU.ActiveCfg = Release|Any CPU {5D2098BD-42DB-48D5-8AF9-90796F436538}.Release|Any CPU.Build.0 = Release|Any CPU + {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Release|Any CPU.Build.0 = Release|Any CPU {3C66C52D-A576-4E88-8883-A98A241C3EB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3C66C52D-A576-4E88-8883-A98A241C3EB5}.Debug|Any CPU.Build.0 = Debug|Any CPU {3C66C52D-A576-4E88-8883-A98A241C3EB5}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {3C66C52D-A576-4E88-8883-A98A241C3EB5}.Release|Any CPU.ActiveCfg = Release|Any CPU {3C66C52D-A576-4E88-8883-A98A241C3EB5}.Release|Any CPU.Build.0 = Release|Any CPU {3C66C52D-A576-4E88-8883-A98A241C3EB5}.Release|Any CPU.Deploy.0 = Release|Any CPU - {5D2098BD-42DB-48D5-8AF9-90796F436538}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5D2098BD-42DB-48D5-8AF9-90796F436538}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5D2098BD-42DB-48D5-8AF9-90796F436538}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5D2098BD-42DB-48D5-8AF9-90796F436538}.Release|Any CPU.Build.0 = Release|Any CPU - {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8CD344F4-31A9-4A7F-AF62-0DC9A08C98F9}.Release|Any CPU.Build.0 = Release|Any CPU + {654361F1-5E5A-4C9E-8A12-CF2F682D5CB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {654361F1-5E5A-4C9E-8A12-CF2F682D5CB7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {654361F1-5E5A-4C9E-8A12-CF2F682D5CB7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {654361F1-5E5A-4C9E-8A12-CF2F682D5CB7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/StoredProcedureEFCore/DbTypeConverter.cs b/StoredProcedureEFCore/DbTypeConverter.cs index c5c2ae2..994d00c 100644 --- a/StoredProcedureEFCore/DbTypeConverter.cs +++ b/StoredProcedureEFCore/DbTypeConverter.cs @@ -4,7 +4,7 @@ namespace StoredProcedureEFCore { - public static class DbTypeConverter + internal static class DbTypeConverter { private static Dictionary _typeMap = new Dictionary { diff --git a/StoredProcedureEFCore/StoredProcBuilder.cs b/StoredProcedureEFCore/StoredProcBuilder.cs index aa1a6de..c44273f 100644 --- a/StoredProcedureEFCore/StoredProcBuilder.cs +++ b/StoredProcedureEFCore/StoredProcBuilder.cs @@ -24,25 +24,25 @@ public StoredProcBuilder(DbContext ctx, string name) public IStoredProcBuilder AddParam(string name, T val) { - AddParamInner(name, val, ParameterDirection.Input); + AddParamInner(name, val, ParameterDirection.Input); return this; } public IStoredProcBuilder AddParam(string name, out IOutParam outParam) { - outParam = AddOutputParamInner(name, default(T), ParameterDirection.Output); + outParam = AddOutputParamInner(name, default(T), ParameterDirection.Output); return this; } public IStoredProcBuilder AddParam(string name, T val, out IOutParam outParam) { - outParam = AddOutputParamInner(name, val, ParameterDirection.InputOutput); + outParam = AddOutputParamInner(name, val, ParameterDirection.InputOutput); return this; } public IStoredProcBuilder ReturnValue(out IOutParam retParam) { - retParam = AddOutputParamInner("_retParam", default(T), ParameterDirection.ReturnValue); + retParam = AddOutputParamInner("_retParam", default(T), ParameterDirection.ReturnValue); return this; } @@ -169,9 +169,9 @@ private void OpenConnection() _cmd.Connection.Open(); } - private async Task OpenConnectionAsync() + private Task OpenConnectionAsync() { - await _cmd.Connection.OpenAsync(); + return _cmd.Connection.OpenAsync(); } } } diff --git a/StoredProcedureEFCore/StoredProcedureEFCore.csproj b/StoredProcedureEFCore/StoredProcedureEFCore.csproj index ec6bee5..f731f5e 100644 --- a/StoredProcedureEFCore/StoredProcedureEFCore.csproj +++ b/StoredProcedureEFCore/StoredProcedureEFCore.csproj @@ -1,9 +1,8 @@ - - + - netcoreapp1.1 + netstandard1.3 StoredProcedureEFCore - 0.3.1 + 0.3.2 Grégoire Verdier Entity Framework Core extension to execute a stored procedure and map the result https://github.com/verdie-g/StoredProcedureEFCore @@ -17,10 +16,7 @@ true - - - + -