Breeze.Entities.SaveWorkState.SaveWorkState C# (CSharp) Method

SaveWorkState() public method

Populate the EntityInfoGroups, SaveMap, and EntitiesWithAutoGeneratedKeys
public SaveWorkState ( List entityInfoGroups ) : Newtonsoft.Json
entityInfoGroups List
return Newtonsoft.Json
        public SaveWorkState(List<EntityGroup> entityInfoGroups)
        {
            this.EntityInfoGroups = entityInfoGroups;

            SaveMap = new Dictionary<Type, List<EntityInfo>>();
            EntityInfoGroups.ForEach(eg => {
                var entityInfos = eg.EntityInfos;
                SaveMap.Add(eg.EntityType, entityInfos);
            });
            EntitiesWithAutoGeneratedKeys = SaveMap
              .SelectMany(eiGrp => eiGrp.Value)
              .Where(ei => ei.AutoGeneratedKey != null)
              .ToList();
        }