PeanutButter.Utils.Entity 2.0.20

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

Install-Package PeanutButter.Utils.Entity -Version 2.0.20
dotnet add package PeanutButter.Utils.Entity --version 2.0.20
<PackageReference Include="PeanutButter.Utils.Entity" Version="2.0.20" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PeanutButter.Utils.Entity --version 2.0.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PeanutButter.Utils.Entity, 2.0.20"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PeanutButter.Utils.Entity as a Cake Addin
#addin nuget:?package=PeanutButter.Utils.Entity&version=2.0.20

// Install PeanutButter.Utils.Entity as a Cake Tool
#tool nuget:?package=PeanutButter.Utils.Entity&version=2.0.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on PeanutButter.Utils.Entity:

Package Downloads
EmailSpooler.Win32Service.Entity
Provides the Entity POCO classes for sharing data access with the EmailSpooler.Win32Service service
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)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.20 31 5/10/2021
2.0.19 24 5/10/2021
2.0.18 34 5/3/2021
2.0.17 41 5/3/2021
2.0.16 69 4/14/2021
2.0.15 47 4/13/2021
2.0.14 64 3/31/2021
2.0.13 46 3/25/2021
2.0.12 77 3/25/2021
2.0.11 56 2/19/2021
2.0.10 51 2/18/2021
2.0.9 59 2/18/2021
2.0.8 62 2/16/2021
2.0.7 59 2/9/2021
2.0.6 55 2/9/2021
2.0.5 75 2/3/2021
2.0.4 78 1/29/2021
2.0.3 63 1/29/2021
2.0.2 67 1/28/2021
2.0.1 49 1/27/2021
2.0.0 59 1/26/2021
1.2.397 77 1/26/2021
1.2.396 66 1/21/2021
1.2.395 62 1/20/2021
1.2.394 73 1/20/2021
1.2.393 62 1/20/2021
1.2.392 69 1/20/2021
1.2.391 74 1/19/2021
1.2.390 65 1/19/2021
1.2.389 87 1/19/2021
1.2.388 71 1/14/2021
1.2.387 68 1/14/2021
1.2.386 65 1/13/2021
1.2.385 100 1/13/2021
1.2.384 129 1/11/2021
1.2.383 83 1/8/2021
1.2.382 100 1/6/2021
1.2.381 100 1/6/2021
1.2.380 144 11/17/2020
1.2.379 174 10/21/2020
1.2.378 137 9/17/2020
1.2.377 164 9/1/2020
1.2.376 149 9/1/2020
1.2.375 204 7/13/2020
1.2.374 151 7/2/2020
1.2.373 167 7/1/2020
1.2.372 181 6/10/2020
1.2.371 157 6/10/2020
1.2.370 178 6/10/2020
1.2.369 184 6/9/2020
1.2.368 182 6/9/2020
1.2.367 158 6/9/2020
1.2.366 148 6/9/2020
1.2.365 163 6/9/2020
1.2.364 172 6/9/2020
1.2.363 145 6/9/2020
1.2.362 208 6/8/2020
1.2.361 174 6/4/2020
1.2.360 178 5/4/2020
1.2.359 170 4/27/2020
1.2.358 224 4/4/2020
1.2.357 209 3/25/2020
1.2.356 186 3/10/2020
1.2.355 190 3/10/2020
1.2.354 187 3/6/2020
1.2.353 208 3/3/2020
1.2.352 190 3/3/2020
1.2.351 172 3/2/2020
1.2.350 186 3/2/2020
1.2.349 183 3/2/2020
1.2.348 182 3/2/2020
1.2.347 179 3/2/2020
1.2.346 194 2/27/2020
1.2.345 228 2/21/2020
1.2.344 187 2/20/2020
1.2.343 187 2/20/2020
1.2.342 174 2/20/2020
1.2.341 188 2/20/2020
1.2.340 207 2/20/2020
1.2.339 210 2/20/2020
1.2.338 170 2/19/2020
1.2.337 199 2/18/2020
1.2.336 217 2/14/2020
1.2.335 221 2/6/2020
1.2.334 218 2/4/2020
1.2.333 255 2/3/2020
1.2.332 203 1/13/2020
1.2.331 239 12/17/2019
1.2.330 219 12/13/2019
1.2.328 208 12/12/2019
1.2.327 201 12/11/2019
1.2.326 224 12/10/2019
1.2.325 222 12/3/2019
1.2.324 206 11/29/2019
1.2.323 206 11/28/2019
1.2.322 212 11/28/2019
1.2.321 228 11/28/2019
1.2.320 343 11/26/2019
1.2.319 202 11/26/2019
1.2.318 208 11/22/2019
1.2.317 198 11/20/2019
1.2.316 214 10/25/2019
1.2.315 209 10/25/2019
1.2.314 236 10/23/2019
1.2.313 212 10/18/2019
1.2.312 226 10/17/2019
1.2.311 225 10/17/2019
1.2.310 218 10/17/2019
1.2.309 227 10/9/2019
1.2.308 220 10/8/2019
1.2.307 211 10/7/2019
1.2.306 219 10/4/2019
1.2.305 233 10/3/2019
1.2.304 225 10/2/2019
1.2.303 234 9/16/2019
1.2.302 215 9/16/2019
1.2.301 219 9/15/2019
1.2.300 221 9/13/2019
1.2.299 229 9/10/2019
1.2.298 227 9/6/2019
1.2.297 237 8/20/2019
1.2.296 225 8/20/2019
1.2.295 238 8/20/2019
1.2.294 234 8/20/2019
1.2.293 230 8/16/2019
1.2.292 266 7/15/2019
1.2.291 240 6/30/2019
1.2.290 240 6/28/2019
1.2.289 234 6/20/2019
1.2.288 288 6/12/2019
1.2.287 255 6/12/2019
1.2.286 272 6/11/2019
1.2.285 253 6/11/2019
1.2.284 297 6/5/2019
1.2.283 286 5/28/2019
1.2.282 276 5/25/2019
1.2.281 261 5/23/2019
1.2.280 274 5/13/2019
1.2.279 260 5/9/2019
1.2.278 269 5/9/2019
1.2.277 274 5/7/2019
1.2.276 269 5/7/2019
1.2.275 271 5/6/2019
1.2.274 271 4/26/2019
1.2.273 295 4/25/2019
1.2.272 287 4/25/2019
1.2.271 314 4/24/2019
1.2.270 324 4/24/2019
1.2.269 289 4/16/2019
1.2.268 282 4/16/2019
1.2.267 293 4/16/2019
1.2.266 306 4/12/2019
1.2.265 289 4/12/2019
1.2.264 280 4/11/2019
1.2.263 299 4/11/2019
1.2.262 278 4/10/2019
1.2.261 274 4/10/2019
1.2.260 298 4/5/2019
1.2.259 314 2/27/2019
1.2.258 273 2/27/2019
1.2.257 296 2/26/2019
1.2.256 355 2/15/2019
1.2.255 341 2/15/2019
1.2.254 351 2/5/2019
1.2.253 364 12/12/2018
1.2.252 386 11/8/2018
1.2.251 379 11/8/2018
1.2.250 421 10/11/2018
1.2.249 454 10/2/2018
1.2.248 412 9/25/2018
1.2.247 439 9/3/2018
1.2.246 424 8/28/2018
1.2.245 430 8/27/2018
1.2.244 436 8/22/2018
1.2.243 437 8/21/2018
1.2.242 440 8/17/2018
1.2.241 450 7/27/2018
1.2.240 469 7/26/2018
1.2.239 524 6/18/2018
1.2.238 470 6/14/2018
1.2.237 456 5/25/2018
1.2.236 471 5/24/2018
1.2.235 516 5/18/2018
1.2.234 471 5/3/2018
1.2.233 507 5/3/2018
1.2.232 482 4/30/2018
1.2.231 515 4/18/2018
1.2.230 520 4/10/2018
1.2.229 532 4/10/2018
1.2.228 465 4/4/2018
1.2.227 548 3/28/2018
1.2.226 533 3/22/2018
1.2.225 492 3/20/2018
1.2.224 529 3/19/2018
1.2.223 504 3/15/2018
1.2.222 475 3/14/2018
1.2.221 495 3/14/2018
1.2.220 477 2/23/2018
1.2.219 531 2/16/2018
1.2.218 491 2/9/2018
1.2.217 495 2/8/2018
1.2.216 611 2/7/2018
1.2.215 480 2/7/2018
1.2.214 525 2/5/2018
1.2.213 527 2/2/2018
1.2.212 609 1/26/2018
1.2.211 467 1/16/2018
1.2.210 471 12/18/2017
1.2.209 484 12/14/2017
1.2.208 498 12/7/2017
1.2.206 494 12/4/2017
1.2.205 504 11/28/2017
1.2.204 483 11/24/2017
1.2.203 537 11/24/2017
1.2.202 480 11/24/2017
1.2.201 507 11/20/2017
1.2.200 501 11/14/2017
1.2.199 490 11/14/2017
1.2.198 524 11/6/2017
1.2.197 492 11/6/2017
1.2.196 482 10/31/2017
1.2.195 478 10/30/2017
1.2.194 499 10/26/2017
1.2.193 501 10/26/2017
1.2.192 476 10/26/2017
1.2.191 475 10/20/2017
1.2.190 477 10/18/2017
1.2.189 497 10/18/2017
1.2.188 498 10/15/2017
1.2.187 486 10/11/2017
1.2.185 495 10/10/2017
1.2.184 492 10/10/2017
1.2.183 516 10/2/2017
1.2.182 502 9/29/2017
1.2.181 497 9/25/2017
1.2.180 521 9/14/2017
1.2.179 493 9/12/2017
1.2.178 493 8/31/2017
1.2.177 549 8/25/2017
1.2.176 503 8/24/2017
1.2.174 530 8/7/2017
1.2.173 525 8/7/2017
1.2.172 525 8/7/2017
1.2.171 503 8/4/2017
1.2.170 514 8/3/2017
1.2.169 498 8/3/2017
1.2.168 508 8/3/2017
1.2.167 502 8/2/2017
1.2.166 509 8/1/2017
1.2.165 509 7/26/2017
1.2.164 499 7/26/2017
1.2.163 500 7/25/2017
1.2.162 525 7/18/2017
1.2.161 509 7/18/2017
1.2.160 500 7/18/2017
1.2.159 525 7/18/2017
1.2.158 534 7/13/2017
1.2.157 503 7/13/2017
1.2.156 517 7/5/2017
1.2.155 524 6/28/2017
1.2.154 515 6/27/2017
1.2.153 499 6/20/2017
1.2.152 529 6/19/2017
1.2.151 510 6/14/2017
1.2.150 522 6/13/2017
1.2.149 520 5/31/2017
1.2.148 522 5/29/2017
1.2.147 535 5/19/2017
1.2.146 526 5/18/2017
1.2.145 545 5/18/2017
1.2.144 513 5/14/2017
1.2.143 544 5/12/2017
1.2.142 518 5/12/2017
1.2.141 531 5/5/2017
1.2.140 526 4/27/2017
1.2.139 540 2/27/2017
1.2.137 536 2/3/2017
1.2.136 544 2/3/2017
1.2.135 540 1/26/2017
1.2.134 540 1/25/2017
1.2.133 650 1/12/2017
1.2.132 581 1/11/2017
1.2.131 656 1/10/2017
1.2.130 528 1/10/2017
1.2.129 553 1/10/2017
1.2.128 553 1/10/2017
1.2.127 548 1/10/2017
1.2.125 540 1/10/2017
1.2.119 550 12/13/2016
1.2.118 533 12/12/2016
1.2.117 542 12/10/2016
1.2.115 551 12/8/2016
1.2.114 560 12/5/2016
1.2.112 542 11/29/2016
1.2.111 579 11/25/2016
1.2.110 569 11/25/2016
1.2.109 581 11/24/2016
1.2.108 549 11/24/2016
1.2.107 593 11/23/2016
1.2.106 555 11/18/2016
1.2.105 544 11/18/2016
1.2.104 550 11/18/2016
1.2.103 543 11/17/2016
1.2.102 533 11/17/2016
1.2.101 548 11/17/2016
1.2.100 525 11/16/2016
1.2.99 529 11/16/2016
1.2.98 553 11/16/2016
1.2.97 534 11/16/2016
1.2.96 531 11/16/2016
1.2.95 552 11/16/2016
1.2.94 555 11/15/2016
1.2.92 534 11/15/2016
1.2.91 526 11/15/2016
1.2.90 560 11/15/2016
1.2.89 547 11/14/2016
1.2.88 541 11/8/2016
1.2.87 539 11/8/2016
1.2.86 546 11/8/2016
1.2.85 544 11/8/2016
1.2.84 551 11/8/2016
1.2.83 551 11/7/2016
1.2.82 537 11/3/2016
1.2.81 550 11/3/2016
1.2.80 537 11/3/2016
1.2.79 559 11/2/2016
1.2.78 546 11/1/2016
1.2.76 535 11/1/2016
1.2.75 541 10/31/2016
1.2.73 558 10/28/2016
1.2.71 587 10/27/2016
1.2.68 566 10/26/2016
1.2.66 556 10/25/2016
1.2.65 538 10/24/2016
1.2.64 548 10/21/2016
1.2.63 542 10/21/2016
1.2.62 533 10/21/2016
1.2.61 547 10/20/2016
1.2.60 562 10/20/2016
1.2.59 540 10/13/2016
1.2.58 547 10/13/2016
1.2.57 527 10/13/2016
1.2.56 527 10/13/2016
1.2.55 562 10/11/2016
1.2.54 532 10/11/2016
1.2.53 556 10/10/2016
1.2.52 527 10/10/2016
1.2.51 599 9/12/2016
1.2.50 510 9/12/2016
1.2.49 556 9/7/2016
1.2.48 562 9/2/2016
1.2.47 604 5/6/2016
1.2.46 628 4/25/2016
1.2.45 556 4/25/2016
1.2.44 551 4/25/2016
1.2.43 579 4/22/2016
1.2.42 581 4/15/2016
1.2.41 567 4/12/2016
1.2.40 570 4/11/2016
1.2.39 597 4/8/2016
1.2.38 558 4/8/2016
1.2.37 580 4/8/2016
1.2.36 585 4/8/2016
1.2.35 556 4/6/2016
1.2.34 538 4/6/2016
1.2.33 568 4/6/2016
1.2.32 572 4/6/2016
1.2.31 578 4/6/2016
1.2.30 570 4/6/2016
1.2.29 571 4/5/2016
1.2.28 545 4/5/2016
1.2.27 573 4/5/2016
1.2.26 577 4/5/2016
1.2.25 575 4/5/2016
1.2.24 574 4/1/2016
1.2.23 578 3/31/2016
1.2.22 550 3/31/2016
1.2.21 577 3/29/2016
1.2.20 568 3/25/2016
1.2.19 559 3/17/2016
1.2.18 555 3/17/2016
1.2.17 562 3/17/2016
1.2.16 568 3/17/2016
1.2.15 612 3/17/2016
1.2.14 579 3/16/2016
1.2.13 569 3/15/2016
1.2.12 578 3/15/2016
1.2.11 565 3/14/2016
1.2.10 710 3/11/2016
1.2.9 553 3/7/2016
1.2.8 563 3/6/2016
1.2.7 570 3/6/2016
1.2.6 561 3/4/2016
1.2.5 656 3/2/2016
1.2.4 566 3/2/2016
1.2.3 581 3/1/2016
1.2.1 569 2/29/2016
1.2.0 560 2/29/2016
1.1.45 507 7/28/2017
1.1.44 576 2/29/2016
1.1.43 603 2/29/2016
1.1.42 570 2/28/2016
1.1.41 560 2/26/2016
1.1.40 568 2/23/2016
1.1.39 568 2/23/2016
1.1.38 566 2/22/2016
1.1.37 578 2/22/2016
1.1.36 591 2/19/2016
1.1.35 572 2/19/2016
1.1.34 588 2/15/2016
1.1.33 577 2/12/2016
1.1.32 614 2/11/2016
1.1.31 615 2/11/2016
1.1.30 595 2/9/2016
1.1.29 561 2/8/2016
1.1.28 593 1/29/2016
1.1.27 572 1/26/2016
1.1.25 566 1/25/2016
1.1.24 596 1/20/2016
1.1.23 557 1/20/2016
1.1.19 561 1/20/2016
1.1.16 560 1/19/2016
1.1.15 602 1/15/2016
1.1.14 602 1/15/2016
1.1.13 571 1/14/2016
1.1.12 642 1/14/2016
1.1.10 577 1/13/2016
1.1.9 646 1/12/2016
1.1.8 573 1/12/2016
1.1.7 589 1/12/2016
1.1.6 582 1/11/2016
1.1.5 571 1/7/2016
1.1.4 569 1/6/2016
1.1.3 586 1/6/2016
1.1.2 579 1/6/2016
1.1.1 582 1/5/2016
1.1.0 638 1/1/2016
1.0.155 713 12/18/2015
1.0.154 582 12/17/2015
1.0.153 584 12/17/2015
1.0.151 635 12/3/2015
1.0.150 587 12/3/2015
1.0.149 591 12/3/2015
1.0.148 592 12/2/2015
1.0.147 604 12/2/2015
1.0.146 585 12/2/2015
1.0.145 620 12/2/2015
1.0.144 590 12/2/2015
1.0.143 586 12/1/2015
1.0.142 599 12/1/2015
1.0.140 590 12/1/2015
1.0.139 588 11/30/2015
1.0.138 588 11/30/2015
1.0.137 599 11/26/2015
1.0.136 592 11/25/2015
1.0.135 593 11/20/2015
1.0.134 586 11/19/2015
1.0.133 580 11/19/2015
1.0.132 569 11/19/2015
1.0.131 599 11/17/2015
1.0.130 603 11/13/2015
1.0.129 600 11/13/2015
1.0.128 618 11/13/2015
1.0.127 627 11/12/2015
1.0.126 627 11/12/2015
1.0.125 602 11/11/2015