Beispiel #1
0
        /// <summary>
        /// Adds all the properties and behaviours from the specified entity description.
        /// </summary>
        /// <param name="entity">The entity.</param>
        public void AddFrom(EntityDescription description)
        {
            foreach (var item in description.Behaviours)
            {
                AddBehaviour(item);
            }

            foreach (var item in description.Properties)
            {
                AddProperty(item);
            }
        }
Beispiel #2
0
 public EntityVersion(EntityDescription creator, uint version)
     : this()
 {
     Creator = creator;
     Version = version;
 }