SQL EXCEPT and INTERSECT

— AdventureWorks DB SELECT ProductID FROM Production.Product INTERSECT SELECT ProductID FROM Production.WorkOrder ; ==== Gives ONLY matching ProductIDs.. SELECT ProductID FROM Production.Product EXCEPT SELECT ProductID FROM Production.WorkOrder ; –Result: 266 Rows (products without work orders) ==== Gives ProductIDs from Left Set which are NOT in the right Set.

Best Entity Framework Reference Concise Tutorial

EF6  ​http://www.entityframeworktutorial.net/entityframework6/introduction.aspx EF5 http://www.entityframeworktutorial.net/EntityFramework5/entity-framework5-introduction.aspx​ EF Version History and Features links https://msdn.microsoft.com/en-us/data/jj574253.aspx​ EF querying approaches: http://www.entityframeworktutorial.net/Querying-with-EDM.aspx ## LINQ to Entities: context.Students.where(s => s.StudentName == “Bill”) ## Entity SQL: string sqlString = “SELECT VALUE st FROM SchoolDBEntities.Students ” +                     “AS st WHERE st.StudentName == ‘Bill’”; var objctx […]

Entity Framework – Notes

DBEntityEntry enables you to access entity state, current, and original values of all the property of a given entity.​ ​DBEntityEntry studentEntry = dbcontext.Entry(StudentEntity); studentEntry.Reload(); // reload entity from DB, discard in-memory changes.. Or mark an entry as modified manually – (ready to update db on save) studentEntry.State = ​System.Data.Entity.EntityState.Modified​; ​​​EF Change Tracking (CT): ## How many entries are […]