![]() |
VOOZH | about |
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" />Directory.Packages.props
<PackageReference Include="PeanutButter.Utils.Entity" />Project file
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.96Install as a Cake Addin
#tool nuget:?package=PeanutButter.Utils.Entity&version=2.0.96Install as a Cake Tool
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 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net452 net452 is compatible. net46 net46 was computed. net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.96 | 2,479 | 7/26/2022 |
| 2.0.95 | 1,272 | 7/26/2022 |
| 2.0.94 | 1,252 | 7/25/2022 |
| 2.0.93 | 1,228 | 7/25/2022 |
| 2.0.92 | 1,330 | 7/15/2022 |
| 2.0.91 | 1,254 | 7/15/2022 |
| 2.0.90 | 1,256 | 7/14/2022 |
| 2.0.89 | 1,236 | 7/14/2022 |
| 2.0.88 | 1,257 | 7/12/2022 |
| 2.0.87 | 1,300 | 7/11/2022 |
| 2.0.86 | 1,254 | 7/11/2022 |
| 2.0.85 | 1,235 | 7/11/2022 |
| 2.0.84 | 1,259 | 7/8/2022 |
| 2.0.83 | 1,292 | 6/29/2022 |
| 2.0.82 | 1,225 | 6/29/2022 |
| 2.0.81 | 1,316 | 6/23/2022 |
| 2.0.80 | 1,231 | 6/15/2022 |
| 2.0.79 | 1,284 | 6/14/2022 |
| 2.0.78 | 1,266 | 6/14/2022 |
| 2.0.77 | 1,495 | 5/24/2022 |