public static Object GetRefObj(this IDDEntity domainObj, string key, DriverAction action = DriverAction.None) { var refType = domainObj.GetRefType(key, action); if (refType == null) { return(null); } return(refType.CreateInstance()); }
public static Type GetRefType(this IDDEntity entity, string key, DriverAction action = DriverAction.None) { return(Driver.GetRefType(key, entity.GetType(), action)); }