Core.Data
2.2.1
See the version list below for details.
dotnet add package Core.Data --version 2.2.1
NuGet\Install-Package Core.Data -Version 2.2.1
<PackageReference Include="Core.Data" Version="2.2.1" />
<PackageVersion Include="Core.Data" Version="2.2.1" />
<PackageReference Include="Core.Data" />
paket add Core.Data --version 2.2.1
#r "nuget: Core.Data, 2.2.1"
#:package Core.Data@2.2.1
#addin nuget:?package=Core.Data&version=2.2.1
#tool nuget:?package=Core.Data&version=2.2.1
http://learnings.MSFullStackers.com/index.php/2018/07/11/rs2-core/
Core.Data
- .Net Core Data Access Framework with Generic Repository pattern.
===========================================================
Examples
Creating Entity:
Master entities:
public class Country : BaseEntity<int> { }
public class Product : BaseEntity<long> { }
Transaction entities:
public class TaskItem : BaseEntityTrackable<long> { }
============================================================
Business Logic :
CRUD repositories :
public interface IProductRepository : IBaseRepository<Product, long> { }
public class ProductRepository : BaseRepository<Product, long>, IProductRepository { public ProductRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { }
protected override IQueryable<Product> GetEntitySet(bool incluedeDelete = true)
{
return Entity.Include(e => e.Category).Where(p => !incluedeDelete || !p.InActive);
}
}
Read only repositories:
public interface ICountryRepository : IReadRepository<Country, int> { }
public class CountryRepository : BaseRepository<Country, int>, ICountryRepository { public CountryRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { } }
============================================================
Issues/Feedback or Clarification : MSFullStackers@gmail.com
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- Microsoft.EntityFrameworkCore (>= 2.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
2.2.1:
AddAsync method got removed
2.2.0 :
Added FirstOrDefault
Made InActive option as optional
2.1.0 : Added Queryable option for get
.Net Core Entity Framework utility for Data Access Framework with Generic Repository pattern.