private Type GetEntityTypeByTent(IManagerForObject mgrForObj, ImportObject impObj) { if (mgrForObj == null) { throw new ArgumentNullException("mgrForObj"); } if (impObj == null) { throw new ArgumentNullException("impObj"); } var objType = mgrForObj.GetTypeByTENTName(impObj.Entity); if (objType == null) { throw new DeveloperException("Can't find type '{0}'.", impObj.Entity); } return(objType); }
private string GetEntityDescription(IManagerForObject objectManager, string entity) { var type = objectManager.GetTypeByName(entity); return(type == null ? entity : string.Format("{0} ({1})", type.GetDisplayName(), entity)); }
public WmsServiceManager(IUnitOfWorkFactory uowFactory, IManagerForObject managerForObject) { Log = LogManager.GetLogger(GetType()); _uowFactory = uowFactory; _managerForObject = managerForObject; }