/// <summary> /// 添加实体到数据库 /// </summary> /// <param name="t"></param> /// <returns></returns> /// public T Create(T t) { T domain = Context.Set <T>().Add(t); Context.SaveChanges(); return(domain); }
/// <summary> /// 添加实体到数据库 /// </summary> /// <param name="t"></param> /// <returns></returns> /// public T Create(T t) { T domain = Context.Set <T>().Add(t); Context.SaveChanges(); return(domain); }