Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public static Type GetRefType(this IDDEntity entity, string key, DriverAction action = DriverAction.None)
 {
     return(Driver.GetRefType(key, entity.GetType(), action));
 }