Simplify your workflow in minutes.
Don't have an account yet? Sign up.
There are some functions that have gotten new names in EF5 and EF6, but we don't want custom code on websites crash. So what do we do?
To make functions as AddObject and DeleteObject still work after the upgrade, we have added extensions for these. In the early version, as of now, they are a bit rough around the edges, but they appear to be working. I used a few hours on stackoverflow trying many different approaches, but ended up creating my own, simple code:
public static class EF6Obsolete
[Obsolete("Use Add instead")]
public static void AddObject(this object dbSet, object dbItem)
[Obsolete("Use Remove instead")]
public static void DeleteObject(this object dbSet, dynamic dbItem)
//Crazy bananas hack?