Entity Framework Core Extensions: Getting Primary Keys and Dirty Properties

added by DotNetKicks
11/10/2017 2:01:13 PM

1 Kicks, 349 Views

Two simple hacks: finding the primary key values:public static IDictionary<string, object> GetKeys(this DbContext ctx, object entity){ if (ctx == null) { throw new ...


0 comments