PeanutButter.Utils.Entity
1.2.389
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 1.2.389
dotnet add package PeanutButter.Utils.Entity --version 1.2.389
<PackageReference Include="PeanutButter.Utils.Entity" Version="1.2.389" />
paket add PeanutButter.Utils.Entity --version 1.2.389
Dependencies
-
.NETFramework 4.5.2
- EntityFramework (>= 6.1.3)
- PeanutButter.Utils (>= 1.2.389)
-
.NETFramework 4.6.2
- EntityFramework (>= 6.1.3)
- PeanutButter.Utils (>= 1.2.389)
-
.NETStandard 2.0
- EntityFramework (>= 6.1.3)
- PeanutButter.Utils (>= 1.2.389)
Used By
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 |
---|---|---|
1.2.389 | 0 | 1/19/2021 |
1.2.388 | 33 | 1/14/2021 |
1.2.387 | 22 | 1/14/2021 |
1.2.386 | 19 | 1/13/2021 |
1.2.385 | 51 | 1/13/2021 |
1.2.384 | 87 | 1/11/2021 |
1.2.383 | 29 | 1/8/2021 |
1.2.382 | 52 | 1/6/2021 |
1.2.381 | 53 | 1/6/2021 |
1.2.380 | 82 | 11/17/2020 |
1.2.379 | 105 | 10/21/2020 |
1.2.378 | 79 | 9/17/2020 |
1.2.377 | 106 | 9/1/2020 |
1.2.376 | 87 | 9/1/2020 |
1.2.375 | 147 | 7/13/2020 |
1.2.374 | 90 | 7/2/2020 |
1.2.373 | 108 | 7/1/2020 |
1.2.372 | 117 | 6/10/2020 |
1.2.371 | 97 | 6/10/2020 |
1.2.370 | 115 | 6/10/2020 |
1.2.369 | 121 | 6/9/2020 |
1.2.368 | 119 | 6/9/2020 |
1.2.367 | 98 | 6/9/2020 |
1.2.366 | 91 | 6/9/2020 |
1.2.365 | 98 | 6/9/2020 |
1.2.364 | 111 | 6/9/2020 |
1.2.363 | 88 | 6/9/2020 |
1.2.362 | 156 | 6/8/2020 |
1.2.361 | 118 | 6/4/2020 |
1.2.360 | 121 | 5/4/2020 |
1.2.359 | 115 | 4/27/2020 |
1.2.358 | 168 | 4/4/2020 |
1.2.357 | 150 | 3/25/2020 |
1.2.356 | 131 | 3/10/2020 |
1.2.355 | 139 | 3/10/2020 |
1.2.354 | 127 | 3/6/2020 |
1.2.353 | 151 | 3/3/2020 |
1.2.352 | 133 | 3/3/2020 |
1.2.351 | 111 | 3/2/2020 |
1.2.350 | 125 | 3/2/2020 |
1.2.349 | 126 | 3/2/2020 |
1.2.348 | 124 | 3/2/2020 |
1.2.347 | 115 | 3/2/2020 |
1.2.346 | 135 | 2/27/2020 |
1.2.345 | 176 | 2/21/2020 |
1.2.344 | 125 | 2/20/2020 |
1.2.343 | 130 | 2/20/2020 |
1.2.342 | 119 | 2/20/2020 |
1.2.341 | 126 | 2/20/2020 |
1.2.340 | 147 | 2/20/2020 |
1.2.339 | 150 | 2/20/2020 |
1.2.338 | 114 | 2/19/2020 |
1.2.337 | 143 | 2/18/2020 |
1.2.336 | 157 | 2/14/2020 |
1.2.335 | 166 | 2/6/2020 |
1.2.334 | 162 | 2/4/2020 |
1.2.333 | 196 | 2/3/2020 |
1.2.332 | 141 | 1/13/2020 |
1.2.331 | 180 | 12/17/2019 |
1.2.330 | 155 | 12/13/2019 |
1.2.328 | 144 | 12/12/2019 |
1.2.327 | 143 | 12/11/2019 |
1.2.326 | 159 | 12/10/2019 |
1.2.325 | 158 | 12/3/2019 |
1.2.324 | 144 | 11/29/2019 |
1.2.323 | 143 | 11/28/2019 |
1.2.322 | 148 | 11/28/2019 |
1.2.321 | 166 | 11/28/2019 |
1.2.320 | 280 | 11/26/2019 |
1.2.319 | 143 | 11/26/2019 |
1.2.318 | 154 | 11/22/2019 |
1.2.317 | 140 | 11/20/2019 |
1.2.316 | 157 | 10/25/2019 |
1.2.315 | 147 | 10/25/2019 |
1.2.314 | 168 | 10/23/2019 |
1.2.313 | 149 | 10/18/2019 |
1.2.312 | 158 | 10/17/2019 |
1.2.311 | 166 | 10/17/2019 |
1.2.310 | 156 | 10/17/2019 |
1.2.309 | 166 | 10/9/2019 |
1.2.308 | 162 | 10/8/2019 |
1.2.307 | 153 | 10/7/2019 |
1.2.306 | 165 | 10/4/2019 |
1.2.305 | 176 | 10/3/2019 |
1.2.304 | 164 | 10/2/2019 |
1.2.303 | 174 | 9/16/2019 |
1.2.302 | 162 | 9/16/2019 |
1.2.301 | 161 | 9/15/2019 |
1.2.300 | 166 | 9/13/2019 |
1.2.299 | 172 | 9/10/2019 |
1.2.298 | 165 | 9/6/2019 |
1.2.297 | 180 | 8/20/2019 |
1.2.296 | 168 | 8/20/2019 |
1.2.295 | 180 | 8/20/2019 |
1.2.294 | 169 | 8/20/2019 |
1.2.293 | 173 | 8/16/2019 |
1.2.292 | 203 | 7/15/2019 |
1.2.291 | 182 | 6/30/2019 |
1.2.290 | 179 | 6/28/2019 |
1.2.289 | 180 | 6/20/2019 |
1.2.288 | 226 | 6/12/2019 |
1.2.287 | 198 | 6/12/2019 |
1.2.286 | 206 | 6/11/2019 |
1.2.285 | 196 | 6/11/2019 |
1.2.284 | 235 | 6/5/2019 |
1.2.283 | 223 | 5/28/2019 |
1.2.282 | 217 | 5/25/2019 |
1.2.281 | 204 | 5/23/2019 |
1.2.280 | 212 | 5/13/2019 |
1.2.279 | 203 | 5/9/2019 |
1.2.278 | 211 | 5/9/2019 |
1.2.277 | 213 | 5/7/2019 |
1.2.276 | 208 | 5/7/2019 |
1.2.275 | 213 | 5/6/2019 |
1.2.274 | 210 | 4/26/2019 |
1.2.273 | 234 | 4/25/2019 |
1.2.272 | 225 | 4/25/2019 |
1.2.271 | 257 | 4/24/2019 |
1.2.270 | 267 | 4/24/2019 |
1.2.269 | 231 | 4/16/2019 |
1.2.268 | 224 | 4/16/2019 |
1.2.267 | 240 | 4/16/2019 |
1.2.266 | 244 | 4/12/2019 |
1.2.265 | 227 | 4/12/2019 |
1.2.264 | 222 | 4/11/2019 |
1.2.263 | 237 | 4/11/2019 |
1.2.262 | 219 | 4/10/2019 |
1.2.261 | 219 | 4/10/2019 |
1.2.260 | 240 | 4/5/2019 |
1.2.259 | 253 | 2/27/2019 |
1.2.258 | 220 | 2/27/2019 |
1.2.257 | 234 | 2/26/2019 |
1.2.256 | 242 | 2/15/2019 |
1.2.255 | 227 | 2/15/2019 |
1.2.254 | 237 | 2/5/2019 |
1.2.253 | 244 | 12/12/2018 |
1.2.252 | 263 | 11/8/2018 |
1.2.251 | 263 | 11/8/2018 |
1.2.250 | 295 | 10/11/2018 |
1.2.249 | 327 | 10/2/2018 |
1.2.248 | 289 | 9/25/2018 |
1.2.247 | 309 | 9/3/2018 |
1.2.246 | 289 | 8/28/2018 |
1.2.245 | 302 | 8/27/2018 |
1.2.244 | 301 | 8/22/2018 |
1.2.243 | 309 | 8/21/2018 |
1.2.242 | 303 | 8/17/2018 |
1.2.241 | 326 | 7/27/2018 |
1.2.240 | 344 | 7/26/2018 |
1.2.239 | 399 | 6/18/2018 |
1.2.238 | 338 | 6/14/2018 |
1.2.237 | 331 | 5/25/2018 |
1.2.236 | 345 | 5/24/2018 |
1.2.235 | 388 | 5/18/2018 |
1.2.234 | 344 | 5/3/2018 |
1.2.233 | 391 | 5/3/2018 |
1.2.232 | 365 | 4/30/2018 |
1.2.231 | 391 | 4/18/2018 |
1.2.230 | 396 | 4/10/2018 |
1.2.229 | 411 | 4/10/2018 |
1.2.228 | 341 | 4/4/2018 |
1.2.227 | 420 | 3/28/2018 |
1.2.226 | 405 | 3/22/2018 |
1.2.225 | 371 | 3/20/2018 |
1.2.224 | 411 | 3/19/2018 |
1.2.223 | 378 | 3/15/2018 |
1.2.222 | 352 | 3/14/2018 |
1.2.221 | 368 | 3/14/2018 |
1.2.220 | 354 | 2/23/2018 |
1.2.219 | 410 | 2/16/2018 |
1.2.218 | 369 | 2/9/2018 |
1.2.217 | 370 | 2/8/2018 |
1.2.216 | 487 | 2/7/2018 |
1.2.215 | 359 | 2/7/2018 |
1.2.214 | 399 | 2/5/2018 |
1.2.213 | 403 | 2/2/2018 |
1.2.212 | 485 | 1/26/2018 |
1.2.211 | 341 | 1/16/2018 |
1.2.210 | 350 | 12/18/2017 |
1.2.209 | 357 | 12/14/2017 |
1.2.208 | 373 | 12/7/2017 |
1.2.206 | 376 | 12/4/2017 |
1.2.205 | 379 | 11/28/2017 |
1.2.204 | 359 | 11/24/2017 |
1.2.203 | 416 | 11/24/2017 |
1.2.202 | 358 | 11/24/2017 |
1.2.201 | 378 | 11/20/2017 |
1.2.200 | 375 | 11/14/2017 |
1.2.199 | 368 | 11/14/2017 |
1.2.198 | 402 | 11/6/2017 |
1.2.197 | 366 | 11/6/2017 |
1.2.196 | 360 | 10/31/2017 |
1.2.195 | 356 | 10/30/2017 |
1.2.194 | 373 | 10/26/2017 |
1.2.193 | 378 | 10/26/2017 |
1.2.192 | 358 | 10/26/2017 |
1.2.191 | 350 | 10/20/2017 |
1.2.190 | 359 | 10/18/2017 |
1.2.189 | 374 | 10/18/2017 |
1.2.188 | 378 | 10/15/2017 |
1.2.187 | 364 | 10/11/2017 |
1.2.185 | 370 | 10/10/2017 |
1.2.184 | 364 | 10/10/2017 |
1.2.183 | 391 | 10/2/2017 |
1.2.182 | 381 | 9/29/2017 |
1.2.181 | 372 | 9/25/2017 |
1.2.180 | 393 | 9/14/2017 |
1.2.179 | 370 | 9/12/2017 |
1.2.178 | 372 | 8/31/2017 |
1.2.177 | 429 | 8/25/2017 |
1.2.176 | 375 | 8/24/2017 |
1.2.174 | 408 | 8/7/2017 |
1.2.173 | 398 | 8/7/2017 |
1.2.172 | 404 | 8/7/2017 |
1.2.171 | 380 | 8/4/2017 |
1.2.170 | 391 | 8/3/2017 |
1.2.169 | 373 | 8/3/2017 |
1.2.168 | 385 | 8/3/2017 |
1.2.167 | 376 | 8/2/2017 |
1.2.166 | 381 | 8/1/2017 |
1.2.165 | 386 | 7/26/2017 |
1.2.164 | 371 | 7/26/2017 |
1.2.163 | 374 | 7/25/2017 |
1.2.162 | 399 | 7/18/2017 |
1.2.161 | 387 | 7/18/2017 |
1.2.160 | 378 | 7/18/2017 |
1.2.159 | 405 | 7/18/2017 |
1.2.158 | 407 | 7/13/2017 |
1.2.157 | 376 | 7/13/2017 |
1.2.156 | 399 | 7/5/2017 |
1.2.155 | 403 | 6/28/2017 |
1.2.154 | 388 | 6/27/2017 |
1.2.153 | 373 | 6/20/2017 |
1.2.152 | 406 | 6/19/2017 |
1.2.151 | 388 | 6/14/2017 |
1.2.150 | 400 | 6/13/2017 |
1.2.149 | 397 | 5/31/2017 |
1.2.148 | 399 | 5/29/2017 |
1.2.147 | 416 | 5/19/2017 |
1.2.146 | 402 | 5/18/2017 |
1.2.145 | 421 | 5/18/2017 |
1.2.144 | 386 | 5/14/2017 |
1.2.143 | 415 | 5/12/2017 |
1.2.142 | 388 | 5/12/2017 |
1.2.141 | 408 | 5/5/2017 |
1.2.140 | 400 | 4/27/2017 |
1.2.139 | 416 | 2/27/2017 |
1.2.137 | 412 | 2/3/2017 |
1.2.136 | 423 | 2/3/2017 |
1.2.135 | 421 | 1/26/2017 |
1.2.134 | 414 | 1/25/2017 |
1.2.133 | 524 | 1/12/2017 |
1.2.132 | 461 | 1/11/2017 |
1.2.131 | 533 | 1/10/2017 |
1.2.130 | 409 | 1/10/2017 |
1.2.129 | 430 | 1/10/2017 |
1.2.128 | 434 | 1/10/2017 |
1.2.127 | 423 | 1/10/2017 |
1.2.125 | 412 | 1/10/2017 |
1.2.119 | 421 | 12/13/2016 |
1.2.118 | 411 | 12/12/2016 |
1.2.117 | 419 | 12/10/2016 |
1.2.115 | 424 | 12/8/2016 |
1.2.114 | 438 | 12/5/2016 |
1.2.112 | 420 | 11/29/2016 |
1.2.111 | 450 | 11/25/2016 |
1.2.110 | 441 | 11/25/2016 |
1.2.109 | 457 | 11/24/2016 |
1.2.108 | 430 | 11/24/2016 |
1.2.107 | 467 | 11/23/2016 |
1.2.106 | 432 | 11/18/2016 |
1.2.105 | 423 | 11/18/2016 |
1.2.104 | 426 | 11/18/2016 |
1.2.103 | 416 | 11/17/2016 |
1.2.102 | 412 | 11/17/2016 |
1.2.101 | 419 | 11/17/2016 |
1.2.100 | 401 | 11/16/2016 |
1.2.99 | 412 | 11/16/2016 |
1.2.98 | 428 | 11/16/2016 |
1.2.97 | 411 | 11/16/2016 |
1.2.96 | 411 | 11/16/2016 |
1.2.95 | 428 | 11/16/2016 |
1.2.94 | 430 | 11/15/2016 |
1.2.92 | 409 | 11/15/2016 |
1.2.91 | 401 | 11/15/2016 |
1.2.90 | 435 | 11/15/2016 |
1.2.89 | 426 | 11/14/2016 |
1.2.88 | 419 | 11/8/2016 |
1.2.87 | 412 | 11/8/2016 |
1.2.86 | 428 | 11/8/2016 |
1.2.85 | 417 | 11/8/2016 |
1.2.84 | 426 | 11/8/2016 |
1.2.83 | 422 | 11/7/2016 |
1.2.82 | 416 | 11/3/2016 |
1.2.81 | 433 | 11/3/2016 |
1.2.80 | 412 | 11/3/2016 |
1.2.79 | 434 | 11/2/2016 |
1.2.78 | 422 | 11/1/2016 |
1.2.76 | 417 | 11/1/2016 |
1.2.75 | 425 | 10/31/2016 |
1.2.73 | 435 | 10/28/2016 |
1.2.71 | 468 | 10/27/2016 |
1.2.68 | 436 | 10/26/2016 |
1.2.66 | 435 | 10/25/2016 |
1.2.65 | 418 | 10/24/2016 |
1.2.64 | 427 | 10/21/2016 |
1.2.63 | 418 | 10/21/2016 |
1.2.62 | 413 | 10/21/2016 |
1.2.61 | 425 | 10/20/2016 |
1.2.60 | 431 | 10/20/2016 |
1.2.59 | 415 | 10/13/2016 |
1.2.58 | 422 | 10/13/2016 |
1.2.57 | 411 | 10/13/2016 |
1.2.56 | 407 | 10/13/2016 |
1.2.55 | 441 | 10/11/2016 |
1.2.54 | 410 | 10/11/2016 |
1.2.53 | 431 | 10/10/2016 |
1.2.52 | 408 | 10/10/2016 |
1.2.51 | 475 | 9/12/2016 |
1.2.50 | 393 | 9/12/2016 |
1.2.49 | 429 | 9/7/2016 |
1.2.48 | 438 | 9/2/2016 |
1.2.47 | 479 | 5/6/2016 |
1.2.46 | 501 | 4/25/2016 |
1.2.45 | 434 | 4/25/2016 |
1.2.44 | 429 | 4/25/2016 |
1.2.43 | 451 | 4/22/2016 |
1.2.42 | 453 | 4/15/2016 |
1.2.41 | 435 | 4/12/2016 |
1.2.40 | 444 | 4/11/2016 |
1.2.39 | 469 | 4/8/2016 |
1.2.38 | 432 | 4/8/2016 |
1.2.37 | 456 | 4/8/2016 |
1.2.36 | 460 | 4/8/2016 |
1.2.35 | 429 | 4/6/2016 |
1.2.34 | 420 | 4/6/2016 |
1.2.33 | 445 | 4/6/2016 |
1.2.32 | 449 | 4/6/2016 |
1.2.31 | 450 | 4/6/2016 |
1.2.30 | 448 | 4/6/2016 |
1.2.29 | 449 | 4/5/2016 |
1.2.28 | 417 | 4/5/2016 |
1.2.27 | 451 | 4/5/2016 |
1.2.26 | 449 | 4/5/2016 |
1.2.25 | 449 | 4/5/2016 |
1.2.24 | 453 | 4/1/2016 |
1.2.23 | 455 | 3/31/2016 |
1.2.22 | 424 | 3/31/2016 |
1.2.21 | 451 | 3/29/2016 |
1.2.20 | 445 | 3/25/2016 |
1.2.19 | 436 | 3/17/2016 |
1.2.18 | 433 | 3/17/2016 |
1.2.17 | 436 | 3/17/2016 |
1.2.16 | 442 | 3/17/2016 |
1.2.15 | 495 | 3/17/2016 |
1.2.14 | 453 | 3/16/2016 |
1.2.13 | 444 | 3/15/2016 |
1.2.12 | 455 | 3/15/2016 |
1.2.11 | 440 | 3/14/2016 |
1.2.10 | 592 | 3/11/2016 |
1.2.9 | 432 | 3/7/2016 |
1.2.8 | 442 | 3/6/2016 |
1.2.7 | 446 | 3/6/2016 |
1.2.6 | 436 | 3/4/2016 |
1.2.5 | 531 | 3/2/2016 |
1.2.4 | 442 | 3/2/2016 |
1.2.3 | 456 | 3/1/2016 |
1.2.1 | 448 | 2/29/2016 |
1.2.0 | 440 | 2/29/2016 |
1.1.45 | 380 | 7/28/2017 |
1.1.44 | 447 | 2/29/2016 |
1.1.43 | 483 | 2/29/2016 |
1.1.42 | 445 | 2/28/2016 |
1.1.41 | 443 | 2/26/2016 |
1.1.40 | 438 | 2/23/2016 |
1.1.39 | 438 | 2/23/2016 |
1.1.38 | 440 | 2/22/2016 |
1.1.37 | 453 | 2/22/2016 |
1.1.36 | 465 | 2/19/2016 |
1.1.35 | 443 | 2/19/2016 |
1.1.34 | 463 | 2/15/2016 |
1.1.33 | 451 | 2/12/2016 |
1.1.32 | 497 | 2/11/2016 |
1.1.31 | 496 | 2/11/2016 |
1.1.30 | 471 | 2/9/2016 |
1.1.29 | 437 | 2/8/2016 |
1.1.28 | 472 | 1/29/2016 |
1.1.27 | 446 | 1/26/2016 |
1.1.25 | 443 | 1/25/2016 |
1.1.24 | 466 | 1/20/2016 |
1.1.23 | 431 | 1/20/2016 |
1.1.19 | 435 | 1/20/2016 |
1.1.16 | 438 | 1/19/2016 |
1.1.15 | 473 | 1/15/2016 |
1.1.14 | 477 | 1/15/2016 |
1.1.13 | 447 | 1/14/2016 |
1.1.12 | 518 | 1/14/2016 |
1.1.10 | 454 | 1/13/2016 |
1.1.9 | 518 | 1/12/2016 |
1.1.8 | 447 | 1/12/2016 |
1.1.7 | 465 | 1/12/2016 |
1.1.6 | 456 | 1/11/2016 |
1.1.5 | 449 | 1/7/2016 |
1.1.4 | 446 | 1/6/2016 |
1.1.3 | 456 | 1/6/2016 |
1.1.2 | 455 | 1/6/2016 |
1.1.1 | 458 | 1/5/2016 |
1.1.0 | 510 | 1/1/2016 |
1.0.155 | 587 | 12/18/2015 |
1.0.154 | 453 | 12/17/2015 |
1.0.153 | 457 | 12/17/2015 |
1.0.151 | 509 | 12/3/2015 |
1.0.150 | 465 | 12/3/2015 |
1.0.149 | 475 | 12/3/2015 |
1.0.148 | 475 | 12/2/2015 |
1.0.147 | 477 | 12/2/2015 |
1.0.146 | 455 | 12/2/2015 |
1.0.145 | 494 | 12/2/2015 |
1.0.144 | 466 | 12/2/2015 |
1.0.143 | 462 | 12/1/2015 |
1.0.142 | 475 | 12/1/2015 |
1.0.140 | 472 | 12/1/2015 |
1.0.139 | 465 | 11/30/2015 |
1.0.138 | 463 | 11/30/2015 |
1.0.137 | 473 | 11/26/2015 |
1.0.136 | 472 | 11/25/2015 |
1.0.135 | 472 | 11/20/2015 |
1.0.134 | 461 | 11/19/2015 |
1.0.133 | 455 | 11/19/2015 |
1.0.132 | 446 | 11/19/2015 |
1.0.131 | 471 | 11/17/2015 |
1.0.130 | 480 | 11/13/2015 |
1.0.129 | 474 | 11/13/2015 |
1.0.128 | 491 | 11/13/2015 |
1.0.127 | 501 | 11/12/2015 |
1.0.126 | 500 | 11/12/2015 |
1.0.125 | 479 | 11/11/2015 |