Esempio n. 1
0
        /// <summary>
        /// </summary>
        /// <param name="type"></param>
        /// <param name="newValue"></param>
        public List <ReferenceInfo> ChangeAllReferencesToType(EntityType type, EntityType newValue)
        {
            List <ReferenceInfo> result = new List <ReferenceInfo>();

            foreach (EntityType current in Types)
            {
                List <ClassInfo.EntityTypeSerializableFieldItem> r = current.OnChangeReferencesToObject(type, newValue);
                ReferenceInfo ri = new ReferenceInfo(type, current);
                ri.AddRange(r);
                result.Add(ri);
            }
            return(result);
        }