Releases: MicroLite-ORM/MicroLite.Extensions.WebApi
MicroLite.Extensions.WebApi 4.1.0
Updated the Controllers to accept an ISession
via the constructor to make it easier to integrate with IOC containers.
MicroLite.Extensions.WebApi 4.0.1
Contains a single change which is #28 change ODataValidationSettings back to being a class.
MicroLite.Extensions.WebApi 4.0.0
Built against WebApi 4 and MicroLite 5.0.0
The main change is that the .WithWebApi()
method no longer accepts a parameter.
Instead, add the attributes you need to your WebApiConfig
to gain the behaviour you require. See the ReadMe for further details.
Also note that the transaction functionality of the MicroLiteSessionAttribute
has been split out into a separate AutoManageTransactionAttribute
. This allows you to still benefit from the auto transaction management on a per-action basis but use an IOC container to supply your controller with an ISession
if you use one rather than using the MicroLiteSession
attribute.
The other minor change is that we now only depend on Microsoft.AspNet.WebApi.Client instead of Microsoft.AspNet.WebApi.WebHost which allows you to use the extension in either WebHost or SelfHost.