Simple EF6-style Logging for EF Core

It took me a while to figure out logging in EF Core, and I missed the simple way you could add logging for EF6. Remember in EF6 it’s as easy as using (var db = new BloggingContext()) { db.Database.Log = s => Console.WriteLine(s); //. . . } This is exacerbated that EF Core doesn’t support…

0

New Sample Published: ObjectDataReader

I just published a new sample in the MSDN sample gallery:  ObjectDataReader.  This is an update of an older sample (EntityDataReader) that is an IDataReader adapter for object collections.  This is useful primarily for bulk loading SQL Server from a collection of .NET objects. ObjectDataReader is intended to be simple and fast.  It uses dynamically-compiled expressions to…

0