/// <summary> /// 使用EF进行添加 /// </summary> /// <param name="model"></param> /// <param name="sameValueWhere"></param> public void InsertByEF(T model, Expression <Func <T, bool> > sameValueWhere) { if (BeginInsert != null) { BeginInsert.Invoke(model); } var inserted = _provider.InsertByEF(model, sameValueWhere); if (EndInsert != null) { EndInsert.Invoke(inserted); } }