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
$ dotnet add package PeanutButter.Utils.EntityNo README available.