Beispiel #1
0
        public static void SetField(EntityBase entity)
        {
            if (entity == null)
            {
                return;
            }

            var fs = entity.GetType().AsFactory().AdditionalFields;

            if (fs.Count > 0)
            {
                entity.Addition.Set(fs);
            }
        }
Beispiel #2
0
        public static void SetField(EntityBase entity)
        {
            if (entity == null)
            {
                return;
            }

            var factory = EntityFactory.CreateOperate(entity.GetType());
            var fs      = factory.AdditionalFields;

            if (fs.Count > 0)
            {
                entity.Addition.Set(fs);
            }
        }