0
[HttpPost]
public SaveResult SaveChanges(JObject saveBundle)
{
try
{
EFContextProvider<ManagerContext> _contextProvider =
new EFContextProvider<ManagerContext>();
_contextProvider.BeforeSaveEntityDelegate += BeforeSaveEntity();
}
catch (Exception exp)
{
throw exp;
}
}
public bool BeforeSaveEntity(Dictionary<Type, List<EntityInfo>> saveMap)
{
//How do I use this
}
的BeforeSaveEntitiesDelegate和BeforeSaveEntityDelegate我不明白如何使用BeforeSaveEntitiesDelegate
和BeforeSaveEntityDelegate
。請幫助我如何使用這些功能。 我已經訪問過this網站。但失敗了。如何使用Web API境提供