mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-19 14:48:42 +08:00
fd10fe7ccb
This eliminates the dual solutions and brings Contrib into the project.json fold. - Tests are ported to xUnit though SQLite is disabled on DNX due to Issue #375 (Interop loads fail in the VS runner and params are busted regardless). - Projects are consolidated down to what's currently possible with project.json. - Contrib moved to: Dapper.Contrib and Dapper.Tests.Contrib (so tests appear at the end, no other reason vs. Dapper.Contrib.Tests) - EF moved to: Dapper.EntityFramework(.StrongName) - Rainbow moved to: Dapper.Rainbow - SqlBuilder moved to: Dapper.SqlBuilder - Packages are removed since it's not current-tooling friendly to keep them (nor was it using them). - xUnit implemented in Contrib via abstracts - this allow us to very quickly add any database provider to the rig in a very concise way. - Contrib unit tests fixed in various places - they were not parallel-runner friendly - Nuspecs removed, since they aren't used anymore (to eliminate confusion) - Removed speed tests for libraries that aren't on current versions of .Net (what would we be comparing?) - Perf tests moved to Dapper.Tests (consolidation from Dapper.DNX.Tests), but aren't activated yet (no define)
<html lang="en-US"> <head> <meta charset="utf-8" /> <title>Microsoft.SqlServer.Types</title> <style> body { background: #fff; color: #505050; margin: 20px; } #main { background: #efefef; padding: 5px 30px; } </style> </head> <body> <div id="main"> <h1>Action required to load native assemblies</h1> <p> To deploy an application that uses spatial data types to a machine that does not have 'System CLR Types for SQL Server' installed you also need to deploy the native assembly SqlServerSpatial110.dll. Both x86 (32 bit) and x64 (64 bit) versions of this assembly have been added to your project under the SqlServerTypes\x86 and SqlServerTypes\x64 subdirectories. The native assembly msvcr100.dll is also included in case the C++ runtime is not installed. </p> <p> You need to add code to load the correct one of these assemblies at runtime (depending on the current architecture). </p> <h2>ASP.NET applications</h2> <p> For ASP.NET applications, add the following line of code to the Application_Start method in Global.asax.cs: <pre> SqlServerTypes.Utilities.LoadNativeAssemblies(Server.MapPath("~/bin"));</pre> </p> <h2>Desktop applications</h2> <p> For desktop applications, add the following line of code to run before any spatial operations are performed: <pre> SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);</pre> </p> </div> </body> </html>