示例#1
0
        private BaseModel LoadLookupValue(ModelItem propertyInfo, Guid idValue)
        {
            var method         = RepositoryReflectionUtilities.GetGenericMethod(GetType(), "LoadTypedLookupValue", propertyInfo.DataValueType);
            var referenceModel = (BaseModel)method?.Invoke(this, new object[] { idValue });

            return(referenceModel);
        }
示例#2
0
        private object LoadDetailValues(BaseModel model, ModelItem propertyInfo)
        {
            string detailLinkPropertyName = GetDetailLinkPropertyName(propertyInfo);
            var    method = RepositoryReflectionUtilities.GetGenericMethod(GetType(), "LoadTypedDetailValues", propertyInfo.DataValueType);

            return(method?.Invoke(this, new object[] { detailLinkPropertyName, model.Id }));
        }