PeanutButter.Utils.Entity
2.0.96
Prefix Reserved
dotnet add package PeanutButter.Utils.Entity --version 2.0.96
NuGet\Install-Package PeanutButter.Utils.Entity -Version 2.0.96
<PackageReference Include="PeanutButter.Utils.Entity" Version="2.0.96" />
<PackageVersion Include="PeanutButter.Utils.Entity" Version="2.0.96" />
<PackageReference Include="PeanutButter.Utils.Entity" />
paket add PeanutButter.Utils.Entity --version 2.0.96
#r "nuget: PeanutButter.Utils.Entity, 2.0.96"
#:package PeanutButter.Utils.Entity@2.0.96
#addin nuget:?package=PeanutButter.Utils.Entity&version=2.0.96
#tool nuget:?package=PeanutButter.Utils.Entity&version=2.0.96
Provides the following:
* EntityBase
- a base entity class to inherit from. Provides the following fields:
Created (datetime)
LastModified (datetime?)
Enabled (bool)
* DbContextWithAutomaticTrackingFields
- when persisting entities which derive from EntityBase, this will automatically
set Created to the current timestamp on a new entity and update LastModified
on an updated entity
* Extensions to:
- AddRange on an IDbSet
- AddRange on an ICollection
- RemoveRange on an IDbSet
- RemoveRange on an ICollection
- Clear on IDbSet (delete all in dbset)
- AddNew on IDbSet and ICollection
- Convenience method so you can, for example, do:
var someItem = context.SomeCollection.FirstOrDefault(i => i.Name == "bob") ?? context.Collection.AddNew(e => e.Name = "bob");
which finds the first bob or adds a new one
- Transform, which provides a fluent manner to do what you would with Select(), but on a single result
| 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 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 | net452 is compatible. net46 was computed. net461 was computed. net462 is compatible. 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. |
-
.NETFramework 4.5.2
- EntityFramework (>= 6.1.3)
- PeanutButter.Utils (>= 2.0.96)
-
.NETFramework 4.6.2
- EntityFramework (>= 6.1.3)
- PeanutButter.Utils (>= 2.0.96)
-
.NETStandard 2.0
- EntityFramework (>= 6.1.3)
- PeanutButter.Utils (>= 2.0.96)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on PeanutButter.Utils.Entity:
| Package | Downloads |
|---|---|
|
PeanutButter.TestUtils.Entity
Contains classes to help with testing when entity and a SQL Server would be involved in production: * TestFixtureWithTempDb provides bootstrapping for tests which would use a temporary database (TempDBLocalDb) * EntityPersistenceTestFixtureBase provides helpers for the common test of persisting and recalling entities to test that mappings (automatic or manual) work as expected * DbContextExtensions adds SaveChangesWithErrorReporting(), an extension method for DbContext derivatives to provide more information within tests as to why a test is failing (such information is usually buried within the exception maze that Entity provides) |
|
|
EmailSpooler.Win32Service.Entity
Provides the Entity POCO classes for sharing data access with the EmailSpooler.Win32Service service |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.96 | 2,454 | 7/26/2022 |
| 2.0.95 | 1,260 | 7/26/2022 |
| 2.0.94 | 1,247 | 7/25/2022 |
| 2.0.93 | 1,218 | 7/25/2022 |
| 2.0.92 | 1,324 | 7/15/2022 |
| 2.0.91 | 1,245 | 7/15/2022 |
| 2.0.90 | 1,248 | 7/14/2022 |
| 2.0.89 | 1,227 | 7/14/2022 |
| 2.0.88 | 1,246 | 7/12/2022 |
| 2.0.87 | 1,289 | 7/11/2022 |
| 2.0.86 | 1,246 | 7/11/2022 |
| 2.0.85 | 1,226 | 7/11/2022 |
| 2.0.84 | 1,250 | 7/8/2022 |
| 2.0.83 | 1,280 | 6/29/2022 |
| 2.0.82 | 1,215 | 6/29/2022 |
| 2.0.81 | 1,308 | 6/23/2022 |
| 2.0.80 | 1,224 | 6/15/2022 |
| 2.0.79 | 1,270 | 6/14/2022 |
| 2.0.78 | 1,260 | 6/14/2022 |
| 2.0.77 | 1,487 | 5/24/2022 |