数据上下文中的AddOrUpdate方法

AddOrUpdate是扩展方法,需要添加引用  using System.Data.Entity.Migrations;

原文地址:https://www.cnblogs.com/techliang666/p/8350651.html