Esempio n. 1
0
 protected virtual async Task ParseEntityAsync(TEntity entity)
 {
     Id               = entity.Id;
     DateAdded        = entity.DateAdded;
     DateUpdated      = entity.DateUpdated;
     PropertiesGroups = (await _propertiesProvider.GetAsync(entity))
                        .Select(p => PropertiesGroup.Create(p, PropertiesProvider.GetSchema(p.Key))).ToList();
 }
Esempio n. 2
0
        protected virtual Task ParseEntityAsync(TEntity entity)
        {
            Id          = entity.Id;
            DateAdded   = entity.DateAdded;
            DateUpdated = entity.DateUpdated;

            Title = entity.Title;

            PropertiesGroups =
                entity.Properties.Select(p => PropertiesGroup.Create(p, PropertiesProvider.GetSchema(p.Key))).ToList();
            return(Task.CompletedTask);
        }