public bool MenusNoTransactionOPEntitys(OPEntityCmd cmd) { SystemBusiness _SysInfoBusiness = new SystemBusiness(); List <MenuInfo> itemList = JsonUtil.fromJson <List <MenuInfo> >(cmd.EntityJson); EOPType eopType = (EOPType)cmd.optype; return(_SysInfoBusiness.NoTransactionOPEntitys <MenuInfo>(itemList, eopType)); }
public bool NoTransactionOPEntitys(OPEntityCmd cmd) { BaseBusinessObject _BaseBusinessObject = new BaseBusinessObject(); #region 动态实体解析 Type type = ObjectHelper.GetSingleObjectTypeByName(cmd.Namespace, cmd.EntityTypeName); Type listType = ObjectHelper.GetListObjectTypeByName(cmd.Namespace, cmd.EntityTypeName); var itemList = typeof(JsonUtil).GetMethod("fromJson").MakeGenericMethod(listType)?.Invoke(null, new object[] { cmd.EntityJson }); #endregion EOPType eopType = (EOPType)cmd.optype; object result = typeof(BaseBusinessObject).GetMethod("NoTransactionOPEntitys").MakeGenericMethod(type)?.Invoke(_BaseBusinessObject, new object[] { itemList, eopType }); return((bool)result); // List <MenuInfo> itemList = JsonUtil.fromJson<List<MenuInfo>>(cmd.EntityJson); //return _SysInfoBusiness.NoTransactionOPEntitys<MenuInfo>(itemList, eopType); }