PeanutButter.Utils.Entity 1.2.395

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

There is a newer version of this package available.
See the version list below for details.
Install-Package PeanutButter.Utils.Entity -Version 1.2.395
dotnet add package PeanutButter.Utils.Entity --version 1.2.395
<PackageReference Include="PeanutButter.Utils.Entity" Version="1.2.395" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PeanutButter.Utils.Entity --version 1.2.395
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PeanutButter.Utils.Entity, 1.2.395"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

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.11 34 2/19/2021
2.0.10 33 2/18/2021
2.0.9 42 2/18/2021
2.0.8 44 2/16/2021
2.0.7 42 2/9/2021
2.0.6 39 2/9/2021
2.0.5 53 2/3/2021
2.0.4 54 1/29/2021
2.0.3 39 1/29/2021
2.0.2 42 1/28/2021
2.0.1 26 1/27/2021
2.0.0 35 1/26/2021
1.2.397 53 1/26/2021
1.2.396 37 1/21/2021
1.2.395 35 1/20/2021
1.2.394 47 1/20/2021
1.2.393 36 1/20/2021
1.2.392 43 1/20/2021
1.2.391 48 1/19/2021
1.2.390 38 1/19/2021
1.2.389 60 1/19/2021
1.2.388 45 1/14/2021
1.2.387 41 1/14/2021
1.2.386 38 1/13/2021
1.2.385 74 1/13/2021
1.2.384 103 1/11/2021
1.2.383 57 1/8/2021
1.2.382 76 1/6/2021
1.2.381 76 1/6/2021
1.2.380 108 11/17/2020
1.2.379 138 10/21/2020
1.2.378 102 9/17/2020
1.2.377 129 9/1/2020
1.2.376 114 9/1/2020
1.2.375 170 7/13/2020
1.2.374 117 7/2/2020
1.2.373 134 7/1/2020
1.2.372 148 6/10/2020
1.2.371 124 6/10/2020
1.2.370 144 6/10/2020
1.2.369 151 6/9/2020
1.2.368 149 6/9/2020
1.2.367 125 6/9/2020
1.2.366 114 6/9/2020
1.2.365 130 6/9/2020
1.2.364 139 6/9/2020
1.2.363 112 6/9/2020
1.2.362 175 6/8/2020
1.2.361 141 6/4/2020
1.2.360 144 5/4/2020
1.2.359 137 4/27/2020
1.2.358 191 4/4/2020
1.2.357 176 3/25/2020
1.2.356 153 3/10/2020
1.2.355 157 3/10/2020
1.2.354 154 3/6/2020
1.2.353 175 3/3/2020
1.2.352 154 3/3/2020
1.2.351 139 3/2/2020
1.2.350 153 3/2/2020
1.2.349 150 3/2/2020
1.2.348 149 3/2/2020
1.2.347 146 3/2/2020
1.2.346 161 2/27/2020
1.2.345 195 2/21/2020
1.2.344 154 2/20/2020
1.2.343 154 2/20/2020
1.2.342 141 2/20/2020
1.2.341 154 2/20/2020
1.2.340 174 2/20/2020
1.2.339 176 2/20/2020
1.2.338 137 2/19/2020
1.2.337 166 2/18/2020
1.2.336 184 2/14/2020
1.2.335 188 2/6/2020
1.2.334 185 2/4/2020
1.2.333 218 2/3/2020
1.2.332 166 1/13/2020
1.2.331 204 12/17/2019
1.2.330 183 12/13/2019
1.2.328 173 12/12/2019
1.2.327 166 12/11/2019
1.2.326 189 12/10/2019
1.2.325 187 12/3/2019
1.2.324 171 11/29/2019
1.2.323 170 11/28/2019
1.2.322 176 11/28/2019
1.2.321 192 11/28/2019
1.2.320 307 11/26/2019
1.2.319 167 11/26/2019
1.2.318 173 11/22/2019
1.2.317 163 11/20/2019
1.2.316 179 10/25/2019
1.2.315 174 10/25/2019
1.2.314 199 10/23/2019
1.2.313 177 10/18/2019
1.2.312 191 10/17/2019
1.2.311 190 10/17/2019
1.2.310 183 10/17/2019
1.2.309 192 10/9/2019
1.2.308 184 10/8/2019
1.2.307 175 10/7/2019
1.2.306 183 10/4/2019
1.2.305 198 10/3/2019
1.2.304 207 10/2/2019
1.2.303 199 9/16/2019
1.2.302 180 9/16/2019
1.2.301 184 9/15/2019
1.2.300 203 9/13/2019
1.2.299 194 9/10/2019
1.2.298 209 9/6/2019
1.2.297 202 8/20/2019
1.2.296 190 8/20/2019
1.2.295 202 8/20/2019
1.2.294 199 8/20/2019
1.2.293 195 8/16/2019
1.2.292 230 7/15/2019
1.2.291 221 6/30/2019
1.2.290 205 6/28/2019
1.2.289 199 6/20/2019
1.2.288 252 6/12/2019
1.2.287 237 6/12/2019
1.2.286 237 6/11/2019
1.2.285 218 6/11/2019
1.2.284 262 6/5/2019
1.2.283 251 5/28/2019
1.2.282 240 5/25/2019
1.2.281 226 5/23/2019
1.2.280 256 5/13/2019
1.2.279 225 5/9/2019
1.2.278 233 5/9/2019
1.2.277 256 5/7/2019
1.2.276 234 5/7/2019
1.2.275 235 5/6/2019
1.2.274 253 4/26/2019
1.2.273 260 4/25/2019
1.2.272 252 4/25/2019
1.2.271 279 4/24/2019
1.2.270 306 4/24/2019
1.2.269 254 4/16/2019
1.2.268 247 4/16/2019
1.2.267 275 4/16/2019
1.2.266 271 4/12/2019
1.2.265 271 4/12/2019
1.2.264 245 4/11/2019
1.2.263 264 4/11/2019
1.2.262 260 4/10/2019
1.2.261 256 4/10/2019
1.2.260 263 4/5/2019
1.2.259 279 2/27/2019
1.2.258 238 2/27/2019
1.2.257 260 2/26/2019
1.2.256 320 2/15/2019
1.2.255 306 2/15/2019
1.2.254 317 2/5/2019
1.2.253 329 12/12/2018
1.2.252 351 11/8/2018
1.2.251 344 11/8/2018
1.2.250 383 10/11/2018
1.2.249 434 10/2/2018
1.2.248 374 9/25/2018
1.2.247 402 9/3/2018
1.2.246 385 8/28/2018
1.2.245 408 8/27/2018
1.2.244 414 8/22/2018
1.2.243 416 8/21/2018
1.2.242 402 8/17/2018
1.2.241 414 7/27/2018
1.2.240 433 7/26/2018
1.2.239 488 6/18/2018
1.2.238 435 6/14/2018
1.2.237 420 5/25/2018
1.2.236 434 5/24/2018
1.2.235 480 5/18/2018
1.2.234 435 5/3/2018
1.2.233 471 5/3/2018
1.2.232 447 4/30/2018
1.2.231 497 4/18/2018
1.2.230 501 4/10/2018
1.2.229 496 4/10/2018
1.2.228 430 4/4/2018
1.2.227 513 3/28/2018
1.2.226 498 3/22/2018
1.2.225 473 3/20/2018
1.2.224 511 3/19/2018
1.2.223 468 3/15/2018
1.2.222 440 3/14/2018
1.2.221 477 3/14/2018
1.2.220 442 2/23/2018
1.2.219 496 2/16/2018
1.2.218 473 2/9/2018
1.2.217 477 2/8/2018
1.2.216 593 2/7/2018
1.2.215 462 2/7/2018
1.2.214 490 2/5/2018
1.2.213 492 2/2/2018
1.2.212 591 1/26/2018
1.2.211 432 1/16/2018
1.2.210 453 12/18/2017
1.2.209 449 12/14/2017
1.2.208 463 12/7/2017
1.2.206 475 12/4/2017
1.2.205 468 11/28/2017
1.2.204 448 11/24/2017
1.2.203 502 11/24/2017
1.2.202 444 11/24/2017
1.2.201 489 11/20/2017
1.2.200 483 11/14/2017
1.2.199 471 11/14/2017
1.2.198 488 11/6/2017
1.2.197 456 11/6/2017
1.2.196 445 10/31/2017
1.2.195 442 10/30/2017
1.2.194 481 10/26/2017
1.2.193 465 10/26/2017
1.2.192 440 10/26/2017
1.2.191 457 10/20/2017
1.2.190 458 10/18/2017
1.2.189 479 10/18/2017
1.2.188 462 10/15/2017
1.2.187 468 10/11/2017
1.2.185 477 10/10/2017
1.2.184 473 10/10/2017
1.2.183 480 10/2/2017
1.2.182 466 9/29/2017
1.2.181 461 9/25/2017
1.2.180 483 9/14/2017
1.2.179 456 9/12/2017
1.2.178 457 8/31/2017
1.2.177 513 8/25/2017
1.2.176 467 8/24/2017
1.2.174 495 8/7/2017
1.2.173 488 8/7/2017
1.2.172 507 8/7/2017
1.2.171 467 8/4/2017
1.2.170 478 8/3/2017
1.2.169 462 8/3/2017
1.2.168 472 8/3/2017
1.2.167 466 8/2/2017
1.2.166 473 8/1/2017
1.2.165 473 7/26/2017
1.2.164 463 7/26/2017
1.2.163 464 7/25/2017
1.2.162 489 7/18/2017
1.2.161 473 7/18/2017
1.2.160 464 7/18/2017
1.2.159 490 7/18/2017
1.2.158 497 7/13/2017
1.2.157 467 7/13/2017
1.2.156 480 7/5/2017
1.2.155 488 6/28/2017
1.2.154 479 6/27/2017
1.2.153 481 6/20/2017
1.2.152 493 6/19/2017
1.2.151 474 6/14/2017
1.2.150 486 6/13/2017
1.2.149 483 5/31/2017
1.2.148 487 5/29/2017
1.2.147 499 5/19/2017
1.2.146 508 5/18/2017
1.2.145 526 5/18/2017
1.2.144 477 5/14/2017
1.2.143 507 5/12/2017
1.2.142 482 5/12/2017
1.2.141 495 5/5/2017
1.2.140 490 4/27/2017
1.2.139 504 2/27/2017
1.2.137 500 2/3/2017
1.2.136 508 2/3/2017
1.2.135 505 1/26/2017
1.2.134 505 1/25/2017
1.2.133 615 1/12/2017
1.2.132 546 1/11/2017
1.2.131 638 1/10/2017
1.2.130 494 1/10/2017
1.2.129 518 1/10/2017
1.2.128 535 1/10/2017
1.2.127 513 1/10/2017
1.2.125 505 1/10/2017
1.2.119 514 12/13/2016
1.2.118 499 12/12/2016
1.2.117 507 12/10/2016
1.2.115 516 12/8/2016
1.2.114 526 12/5/2016
1.2.112 507 11/29/2016
1.2.111 544 11/25/2016
1.2.110 534 11/25/2016
1.2.109 546 11/24/2016
1.2.108 514 11/24/2016
1.2.107 558 11/23/2016
1.2.106 520 11/18/2016
1.2.105 509 11/18/2016
1.2.104 515 11/18/2016
1.2.103 506 11/17/2016
1.2.102 497 11/17/2016
1.2.101 514 11/17/2016
1.2.100 490 11/16/2016
1.2.99 494 11/16/2016
1.2.98 518 11/16/2016
1.2.97 499 11/16/2016
1.2.96 496 11/16/2016
1.2.95 517 11/16/2016
1.2.94 520 11/15/2016
1.2.92 499 11/15/2016
1.2.91 490 11/15/2016
1.2.90 525 11/15/2016
1.2.89 512 11/14/2016
1.2.88 523 11/8/2016
1.2.87 521 11/8/2016
1.2.86 528 11/8/2016
1.2.85 526 11/8/2016
1.2.84 533 11/8/2016
1.2.83 516 11/7/2016
1.2.82 502 11/3/2016
1.2.81 515 11/3/2016
1.2.80 502 11/3/2016
1.2.79 541 11/2/2016
1.2.78 511 11/1/2016
1.2.76 500 11/1/2016
1.2.75 523 10/31/2016
1.2.73 523 10/28/2016
1.2.71 552 10/27/2016
1.2.68 531 10/26/2016
1.2.66 521 10/25/2016
1.2.65 503 10/24/2016
1.2.64 530 10/21/2016
1.2.63 507 10/21/2016
1.2.62 498 10/21/2016
1.2.61 512 10/20/2016
1.2.60 543 10/20/2016
1.2.59 505 10/13/2016
1.2.58 512 10/13/2016
1.2.57 492 10/13/2016
1.2.56 492 10/13/2016
1.2.55 527 10/11/2016
1.2.54 497 10/11/2016
1.2.53 521 10/10/2016
1.2.52 492 10/10/2016
1.2.51 581 9/12/2016
1.2.50 492 9/12/2016
1.2.49 521 9/7/2016
1.2.48 526 9/2/2016
1.2.47 569 5/6/2016
1.2.46 592 4/25/2016
1.2.45 520 4/25/2016
1.2.44 516 4/25/2016
1.2.43 544 4/22/2016
1.2.42 545 4/15/2016
1.2.41 532 4/12/2016
1.2.40 535 4/11/2016
1.2.39 561 4/8/2016
1.2.38 523 4/8/2016
1.2.37 546 4/8/2016
1.2.36 550 4/8/2016
1.2.35 521 4/6/2016
1.2.34 503 4/6/2016
1.2.33 532 4/6/2016
1.2.32 537 4/6/2016
1.2.31 543 4/6/2016
1.2.30 534 4/6/2016
1.2.29 536 4/5/2016
1.2.28 510 4/5/2016
1.2.27 537 4/5/2016
1.2.26 542 4/5/2016
1.2.25 540 4/5/2016
1.2.24 539 4/1/2016
1.2.23 543 3/31/2016
1.2.22 515 3/31/2016
1.2.21 542 3/29/2016
1.2.20 533 3/25/2016
1.2.19 524 3/17/2016
1.2.18 520 3/17/2016
1.2.17 527 3/17/2016
1.2.16 533 3/17/2016
1.2.15 577 3/17/2016
1.2.14 544 3/16/2016
1.2.13 534 3/15/2016
1.2.12 541 3/15/2016
1.2.11 530 3/14/2016
1.2.10 691 3/11/2016
1.2.9 517 3/7/2016
1.2.8 527 3/6/2016
1.2.7 535 3/6/2016
1.2.6 526 3/4/2016
1.2.5 621 3/2/2016
1.2.4 531 3/2/2016
1.2.3 546 3/1/2016
1.2.1 534 2/29/2016
1.2.0 525 2/29/2016
1.1.45 471 7/28/2017
1.1.44 540 2/29/2016
1.1.43 568 2/29/2016
1.1.42 552 2/28/2016
1.1.41 542 2/26/2016
1.1.40 533 2/23/2016
1.1.39 533 2/23/2016
1.1.38 531 2/22/2016
1.1.37 543 2/22/2016
1.1.36 556 2/19/2016
1.1.35 537 2/19/2016
1.1.34 553 2/15/2016
1.1.33 558 2/12/2016
1.1.32 579 2/11/2016
1.1.31 580 2/11/2016
1.1.30 561 2/9/2016
1.1.29 526 2/8/2016
1.1.28 558 1/29/2016
1.1.27 538 1/26/2016
1.1.25 531 1/25/2016
1.1.24 561 1/20/2016
1.1.23 522 1/20/2016
1.1.19 526 1/20/2016
1.1.16 525 1/19/2016
1.1.15 567 1/15/2016
1.1.14 567 1/15/2016
1.1.13 536 1/14/2016
1.1.12 607 1/14/2016
1.1.10 542 1/13/2016
1.1.9 610 1/12/2016
1.1.8 539 1/12/2016
1.1.7 554 1/12/2016
1.1.6 547 1/11/2016
1.1.5 537 1/7/2016
1.1.4 533 1/6/2016
1.1.3 549 1/6/2016
1.1.2 544 1/6/2016
1.1.1 547 1/5/2016
1.1.0 620 1/1/2016
1.0.155 694 12/18/2015
1.0.154 563 12/17/2015
1.0.153 566 12/17/2015
1.0.151 599 12/3/2015
1.0.150 552 12/3/2015
1.0.149 573 12/3/2015
1.0.148 574 12/2/2015
1.0.147 586 12/2/2015
1.0.146 550 12/2/2015
1.0.145 602 12/2/2015
1.0.144 572 12/2/2015
1.0.143 552 12/1/2015
1.0.142 564 12/1/2015
1.0.140 555 12/1/2015
1.0.139 553 11/30/2015
1.0.138 553 11/30/2015
1.0.137 564 11/26/2015
1.0.136 558 11/25/2015
1.0.135 559 11/20/2015
1.0.134 551 11/19/2015
1.0.133 545 11/19/2015
1.0.132 534 11/19/2015
1.0.131 564 11/17/2015
1.0.130 568 11/13/2015
1.0.129 564 11/13/2015
1.0.128 583 11/13/2015
1.0.127 592 11/12/2015
1.0.126 591 11/12/2015
1.0.125 567 11/11/2015
Show less