public new void DeleteByMetaObjectId(int metaObjectId) { var searchContions = base.GetEntitiesByMetaObjectId(metaObjectId); TransactionHelper.Transaction(() => { if (searchContions != null && searchContions.Any()) { //删除字段配置下的所有字段 foreach (var item in searchContions) { dbContext.Delete <SearchConditionAggregation>(t => t.SearchConditionId == item.Id); } } //删除字段配置 base.DeleteByMetaObjectId(metaObjectId); }); }
public new void DeleteByMetaObjectId(int metaObjectId) { var fieldLists = base.GetEntitiesByMetaObjectId(metaObjectId); TransactionHelper.Transaction(() => { if (fieldLists != null && fieldLists.Any()) { //删除字段配置下的所有字段 foreach (var item in fieldLists) { dbContext.Delete <FieldListMetaField>(t => t.FieldListId == item.Id); } } //删除字段配置 base.DeleteByMetaObjectId(metaObjectId); }); }
public void DeleteByMetaFieldId(int metaFieldId) { dbContext.Delete <FieldListAggregation>(t => t.MetaFieldId == metaFieldId); }
public void DeleteByMetaObjectId(int metaObjectId) { dbContext.Delete <TEntity>(t => t.MetaObjectId == metaObjectId); }
public ResultModel Delete(int id) { dbContext.Delete <TEntity>(t => t.Id.Equals(id)); return(ResultModel.Success()); }
public ResultModel Delete(TEntity entity) { dbContext.Delete <TEntity>(entity); return(ResultModel.Success()); }
public Result <SearchConditionNode> Delete(int id) { dbContext.Delete <SearchConditionNode>(t => t.Id == id); return(Result <SearchConditionNode> .Success()); }
public ResultModel Delete(int id) { dbContext.Delete <SearchConditionAggregation>(t => t.Id == id); return(ResultModel.Success()); }
public void DeleteByMetaFieldId(int metaFieldId) { dbContext.Delete <FormMetaField>(t => t.MetaFieldId == metaFieldId); }