- Provide a few extension methods to easily register a type that depends on a named
ISqlMapper
instance.
// default instance
_services.AddSqlMapper(options => {...});
// named instances
_services.AddSqlMapper("foo", options => {...});
_services.AddSqlMapper("bar", options => {...});
// types that depend on a named instance
_services.AddSingletonWithNamedMapper<ISomeDao, SomeDao>("foo");
_services.AddSingletonWithNamedMapper<ISomeOtherDao, SomeOtherDao>("bar");
// same extensions exist for Transient and Scoped
- Switched to .NET 5 (no longer supports .net framework)
- Removed Caching (Breaking Change)
- Added
dynamic
support - Improve build pipelines & code coverage
- SourceLink support and symbol packages #6 (Thanks JTOne123)
- Removed SqlBatis.DataAccess project (breaking change)
- Removed SqlBatis.DataMapper.Logging.Log4Net project (breaking change)
- Merged SqlBatis.Common into SqlBatis.DataMapper to be in a single assembly (breaking change)
- Must manually remove SqlBatis.Common package when upgrading
- Azure DevOps pipelines
- Removed deprecated method:
QueryForPaginatedList
- Testing against
net472;netcoreapp2.1;netcoreapp3.0
- Added NetStandardLogger and NetStandardLoggerAdapter to work with Microsoft.Extensions.Logging
LogManager.Adapter = new NetStandardLoggerAdapter(Provider.GetRequiredService<ILoggerFactory>());
- Added
SqlBatis.Schemas
NuGet Package to includeproviders.xsd
,sqlmap.xsd
andsqlmapconfig.xsd
files for VS intellisense
- Add support for registering named instances of ISqlMapper and getting them via ISqlMapperFactory
- Add support for registering and getting an ISqlMapper through DI
- Renamed from iBatisNet to SqlBatis
- Added NOTICE file
- BF: Correctly handle removal of sessions in
AsyncLocalSessionStore
- Updating NOTICE file to include original iBatisNet Notice.txt text
- Including LICENSE.txt and NOTICE.txt file in NuGet packages
Delist 2.x packages published to nuget.org under IBatisNet.* Publishing new packages under SqlBatis name
- Merged changes from rev 709676 which picked up a number fixes
- Including
SqlBatis.DataMapper.Logging.Log4Net
.Net Framework assembly as well. - Getting rid of rest of the .net framework version.
- Migrated rev 513437 if IBatisNet to .Net Standard
- Decoupled Dynamic Proxy by dynamically loading
ILazyFactory
implementation via a newsettings
attribute calledlazyFactoryType
and splittingProxyGeneratorFactory
andCachedProxyGenerator
to a separate project called IBatisNet.DynamicProxy. You only need this if you have any lazy-loaded results. Refactored to use latest version ofCastle.Core
package - Removed Transactions logic from
System.EnterpriseServices
- Introduced
AsyncLocalSessionStore
and removed all otherISessionStore
implementations (DataMapper & DataAccess) - Removed auto instantiating of
ILoggerFactoryAdapter
usingConfigurationManager
and defauled toNoOpLoggerFA
. You must setLogManager.Adapter
in your startup - Updating assembly versions and package versions to 2.0 (original .net framework version was 1.6.2)