URF.Core.Abstractions.Trackable
3.0.0
See the version list below for details.
dotnet add package URF.Core.Abstractions.Trackable --version 3.0.0
NuGet\Install-Package URF.Core.Abstractions.Trackable -Version 3.0.0
<PackageReference Include="URF.Core.Abstractions.Trackable" Version="3.0.0" />
paket add URF.Core.Abstractions.Trackable --version 3.0.0
#r "nuget: URF.Core.Abstractions.Trackable, 3.0.0"
// Install URF.Core.Abstractions.Trackable as a Cake Addin #addin nuget:?package=URF.Core.Abstractions.Trackable&version=3.0.0 // Install URF.Core.Abstractions.Trackable as a Cake Tool #tool nuget:?package=URF.Core.Abstractions.Trackable&version=3.0.0
URF.Core
URF.Core RTM is Complete!
URF.Core is feature complete and now has full parity with URF.NET (legacy .NET). URF.Core has gone through a complete rewrite with laser focus on Architecture, Design and Implementation as well as implementing top request for vNext, you can take a look at our URF.Core.Sample w/ ASP.NET Core Web API, OData, with full CRUD samples with Angular and Kendo UI.
Lightweight, Nano-Footprint
Staying faithful to (legacy) URF.NET of having a small footprint. URF.Core URF.Core (7 total classes) vs. URF.NET (12 total classes).
100% Extensible
We've made every implementation virtual therefore overridable for whatever teams/projects/developer use-cases as well as edge-cases.
IQuerable vs. IEnumerable
As as always, this is a religious debate between teams and the within the community. As with (legacy) URF.NET, we gave teams the option to opt into IQueryable or IEnumerable, and even both depending on your teams Architecture, Design & Implementation and style. As URF.NET and for teams that feel Repository Patterns that expose IQueryable
as a leaky abstraction, simple use URF's IQuery
API, which will give you all the Fluent features of IQueryable, however will return pure Entity or IEnumerable<TEntity> vs. using IQueryable, again URF.Core & URF.NET both support, so teams have the total freedom to choose which of the 3 paths/options makes most sense for their team/project.
URF.Core sample and usage in ASP.NET Core Web API & OData
public class ProductsController : ODataController
{
private readonly IProductService _productService;
private readonly IUnitOfWork _unitOfWork;
public ProductsController(
IProductService productService,
IUnitOfWork unitOfWork)
{
_productService = productService;
_unitOfWork = unitOfWork;
}
// e.g. GET odata/Products?$skip=2&$top=10
[EnableQuery]
public IQueryable<Products> Get() => _productService.Queryable();
// e.g. GET odata/Products(37)
public async Task<IActionResult> Get([FromODataUri] int key)
{
if (!ModelState.IsValid)
return BadRequest(ModelState);
var product = await _productService.FindAsync(key);
if (product == null)
return NotFound();
return Ok(product);
}
// e.g. PUT odata/Products(37)
public async Task<IActionResult> Put([FromODataUri] int key, [FromBody] Products products)
{
if (!ModelState.IsValid)
return BadRequest(ModelState);
if (key != products.ProductId)
return BadRequest();
_productService.Update(products);
try
{
await _unitOfWork.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
{
if (!await _productService.ExistsAsync(key))
return NotFound();
throw;
}
return NoContent();
}
// e.g. PUT odata/Products
public async Task<IActionResult> Post([FromBody] Products products)
{
if (!ModelState.IsValid)
return BadRequest(ModelState);
_productService.Insert(products);
await _unitOfWork.SaveChangesAsync();
return Created(products);
}
// e.g. PATCH, MERGE odata/Products(37)
[AcceptVerbs("PATCH", "MERGE")]
public async Task<IActionResult> Patch([FromODataUri] int key, [FromBody] Delta<Products> product)
{
if (!ModelState.IsValid)
return BadRequest(ModelState);
var entity = await _productService.FindAsync(key);
if (entity == null)
return NotFound();
product.Patch(entity);
_productService.Update(entity);
try
{
await _unitOfWork.SaveChangesAsync();
}
catch (DbUpdateConcurrencyException)
{
if (!await _productService.ExistsAsync(key))
return NotFound();
throw;
}
return Updated(entity);
}
// e.g. DELETE odata/Products(37)
public async Task<IActionResult> Delete([FromODataUri] int key)
{
if (!ModelState.IsValid)
return BadRequest(ModelState);
var result = await _productService.DeleteAsync(key);
if (!result)
return NotFound();
await _unitOfWork.SaveChangesAsync();
return StatusCode((int) HttpStatusCode.NoContent);
}
}
Performance
URF.Core has been completely re-written, and everything is now completely task
, async
, await
right out of the box. This way, teams will automatically get the best thread management out on asynchronous perf improvements.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- TrackableEntities.Common.Core (>= 3.0.0)
- URF.Core.Abstractions (>= 3.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on URF.Core.Abstractions.Trackable:
Package | Downloads |
---|---|
URF.Core.EF.Trackable
This official URF framework minimizes the surface area of your ORM technlogy from disseminating in your application. Framework provides an elegant way to implement a reusable and extensible Unit of Work and Repository pattern. |
|
URF.Core.Abstractions.Services
This official URF framework minimizes the surface area of your ORM technlogy from disseminating in your application. Framework provides an elegant way to implement a reusable and extensible Unit of Work and Repository pattern. |
|
URF.NET6.EF.Trackable
This official URF framework minimizes the surface area of your ORM technlogy from disseminating in your application. Framework provides an elegant way to implement a reusable and extensible Unit of Work and Repository pattern. Project updated for .NET6. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.0 | 1,244 | 9/7/2024 |
7.0.0 | 12,318 | 2/19/2023 |
6.1.0 | 22,970 | 8/5/2022 |
6.0.1 | 5,692 | 2/8/2022 |
6.0.0 | 842 | 2/7/2022 |
3.1.3 | 28,209 | 11/24/2020 |
3.1.0 | 34,700 | 3/10/2020 |
3.0.0 | 4,957 | 10/14/2019 |
3.0.0-preview7 | 698 | 8/12/2019 |
2.2.0 | 16,110 | 8/11/2019 |
1.1.0 | 18,907 | 5/30/2018 |
1.0.0 | 1,854 | 5/21/2018 |
1.0.0-rc2 | 1,254 | 3/18/2018 |
1.0.0-rc1 | 1,093 | 3/16/2018 |
1.0.0-beta3 | 814 | 3/15/2018 |
1.0.0-beta2 | 1,447 | 2/27/2018 |
1.0.0-beta | 1,260 | 2/15/2018 |