Example #1
0
        private void LoadAdjectiveProperties <T>(T model) where T : BaseModel, new()
        {
            var type = typeof(T);

            ModelMapper.GetModelItems(type).Where(x => (x.PropertyType == ModelItemType.Lookup || x.PropertyType == ModelItemType.Detail) && !x.IsLazy).ForEach(propertyInfo => {
                _lazyModelPropertyLoader.LoadLazyProperty(model, propertyInfo);
            });
        }
Example #2
0
 internal void LoadLazyProperty(ModelItem modelItem)
 {
     LazyModelPropertyLoader.LoadLazyProperty(this, modelItem);
 }